Pārlūkot izejas kodu

Add hex number tokenization to R language

Duncan Werner 8 gadi atpakaļ
vecāks
revīzija
0604e55391
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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']
 		],