mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
Add support for alternate octal integer syntax
This commit is contained in:
parent
66b5497f3c
commit
79ad5abdb3
3 changed files with 29 additions and 1 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue