Add support for alternate octal integer syntax

This commit is contained in:
Sebastian Pahnke 2018-10-05 17:28:43 +02:00
parent 66b5497f3c
commit 79ad5abdb3
3 changed files with 29 additions and 1 deletions

View file

@ -346,6 +346,20 @@ testTokenization('javascript', [
]
}],
[{
line: '0o123',
tokens: [
{ startIndex: 0, type: 'number.octal.js' }
]
}],
[{
line: '0O123',
tokens: [
{ startIndex: 0, type: 'number.octal.js' }
]
}],
[{
line: '0x',
tokens: [