mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Add more tests for hex and binary integer literals
This commit is contained in:
parent
79ad5abdb3
commit
623dbc1acc
2 changed files with 42 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue