فهرست منبع

Merge pull request #21 from sdllc/master

Add hex number tokenization to R language
Peng Lyu 8 سال پیش
والد
کامیت
950b513448
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/r.ts

+ 1 - 0
src/r.ts

@@ -193,6 +193,7 @@ export const language = <ILanguage>{
 
 
 		// Recognize positives, negatives, decimals, imaginaries, and scientific notation
 		// Recognize positives, negatives, decimals, imaginaries, and scientific notation
 		numbers: [
 		numbers: [
+			[/0[xX][0-9a-fA-F]+/, 'number.hex'],
 			[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, 'number']
 			[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, 'number']
 		],
 		],