mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
This commit is contained in:
parent
4e2ba08fc6
commit
229378ae98
2 changed files with 11 additions and 1 deletions
|
|
@ -453,4 +453,14 @@ testTokenization('vb', [
|
||||||
{ startIndex: 0, type: 'string.vb' },
|
{ startIndex: 0, type: 'string.vb' },
|
||||||
]
|
]
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
[{
|
||||||
|
line: `End qweqweqweqweqwe'here always becomes highlighted Loop `,
|
||||||
|
tokens: [
|
||||||
|
{ startIndex: 0, type: 'keyword.end.vb' },
|
||||||
|
{ startIndex: 3, type: '' },
|
||||||
|
{ startIndex: 4, type: 'identifier.vb' },
|
||||||
|
{ startIndex: 19, type: 'comment.vb' },
|
||||||
|
]
|
||||||
|
}],
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ export const language = <ILanguage>{
|
||||||
[/loop(?!\w)/, { token: 'keyword.tag-do' }],
|
[/loop(?!\w)/, { token: 'keyword.tag-do' }],
|
||||||
|
|
||||||
// usual ending tags
|
// usual ending tags
|
||||||
[/end\s+(?!for|do)([a-zA-Z_]\w*)/, { token: 'keyword.tag-$1' }],
|
[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/, { token: 'keyword.tag-$1' }],
|
||||||
|
|
||||||
// identifiers, tagwords, and keywords
|
// identifiers, tagwords, and keywords
|
||||||
[/[a-zA-Z_]\w*/, {
|
[/[a-zA-Z_]\w*/, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue