Explorar el Código

Merge pull request #21 from sdllc/master

Add hex number tokenization to R language
Peng Lyu hace 8 años
padre
commit
950b513448
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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']
 		],