mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Fixes microsoft/monaco-editor#557: VB can have mult-line strings
This commit is contained in:
parent
998a8b2efb
commit
4e2ba08fc6
2 changed files with 19 additions and 2 deletions
|
|
@ -434,5 +434,23 @@ testTokenization('vb', [
|
|||
{ startIndex: 13, type: '' },
|
||||
{ startIndex: 14, type: 'keyword.tag-for.vb' }
|
||||
]
|
||||
}]
|
||||
}],
|
||||
|
||||
[{
|
||||
line: 'Dim x = "hello',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'keyword.dim.vb' },
|
||||
{ startIndex: 3, type: '' },
|
||||
{ startIndex: 4, type: 'identifier.vb' },
|
||||
{ startIndex: 5, type: '' },
|
||||
{ startIndex: 6, type: 'delimiter.vb' },
|
||||
{ startIndex: 7, type: '' },
|
||||
{ startIndex: 8, type: 'string.vb' }
|
||||
]
|
||||
}, {
|
||||
line: 'world"',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'string.vb' },
|
||||
]
|
||||
}],
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ export const language = <ILanguage>{
|
|||
[/@symbols/, 'delimiter'],
|
||||
|
||||
// strings
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'], // non-teminated string
|
||||
[/"/, 'string', '@string'],
|
||||
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue