Ver Fonte

Merge pull request #21 from sdllc/master

Add hex number tokenization to R language
Peng Lyu há 8 anos atrás
pai
commit
950b513448
1 ficheiros alterados com 1 adições e 0 exclusões
  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
 		numbers: [
+			[/0[xX][0-9a-fA-F]+/, 'number.hex'],
 			[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, 'number']
 		],