Add more tests for hex and binary integer literals

pull/2748/head
Sebastian Pahnke 6 years ago
parent 79ad5abdb3
commit 623dbc1acc

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

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

Loading…
Cancel
Save