소스 검색

Add hex number tokenization to R language

Duncan Werner 8 년 전
부모
커밋
0604e55391
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
 		numbers: [
+			[/0[xX][0-9a-fA-F]+/, 'number.hex'],
 			[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, 'number']
 		],