Fixes microsoft/monaco-editor#557: VB can have mult-line strings

pull/2748/head
Alexandru Dima 5 years ago
parent 998a8b2efb
commit 4e2ba08fc6
No known key found for this signature in database
GPG Key ID: 6E58D7B045760DA0

@ -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…
Cancel
Save