mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Add test
This commit is contained in:
parent
4dbc07d557
commit
f85fd5388e
1 changed files with 25 additions and 0 deletions
|
|
@ -950,5 +950,30 @@ testTokenization('cpp', [
|
||||||
{ startIndex: 22, type: 'keyword.directive.include.end.cpp' }
|
{ startIndex: 22, type: 'keyword.directive.include.end.cpp' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
[
|
||||||
|
// microsoft/monaco-editor#2497 : comment continuation highlighting
|
||||||
|
{
|
||||||
|
line: '// this is a comment \\',
|
||||||
|
tokens: [{ startIndex: 0, type: 'comment.cpp' }]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
line: 'this is still a comment',
|
||||||
|
tokens: [{ startIndex: 0, type: 'comment.cpp' }]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
line: 'int x = 1;',
|
||||||
|
tokens: [
|
||||||
|
{ startIndex: 0, type: 'keyword.int.cpp' },
|
||||||
|
{ startIndex: 3, type: '' },
|
||||||
|
{ startIndex: 4, type: 'identifier.cpp' },
|
||||||
|
{ startIndex: 5, type: '' },
|
||||||
|
{ startIndex: 6, type: 'delimiter.cpp' },
|
||||||
|
{ startIndex: 7, type: '' },
|
||||||
|
{ startIndex: 8, type: 'number.cpp' },
|
||||||
|
{ startIndex: 9, type: 'delimiter.cpp' }
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue