@@ -375,6 +375,27 @@ testTokenization('javascript', [
]
}],
+ [{
+ line: '0X123',
+ tokens: [
+ { startIndex: 0, type: 'number.hex.js' }
+ ]
+ }],
+
+ line: '0b101',
+ { startIndex: 0, type: 'number.binary.js' }
+ line: '0B101',
// Regular Expressions
[{
line: '//',
@@ -375,6 +375,27 @@ testTokenization('typescript', [
+ { startIndex: 0, type: 'number.hex.ts' }
+ { startIndex: 0, type: 'number.binary.ts' }