mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
This commit is contained in:
parent
229378ae98
commit
b6b3e0a0db
2 changed files with 13 additions and 0 deletions
|
|
@ -269,5 +269,17 @@ testTokenization(['handlebars', 'css'], [
|
||||||
{ startIndex: 8, type: 'attribute.value' },
|
{ startIndex: 8, type: 'attribute.value' },
|
||||||
{ startIndex: 30, type: 'delimiter.html' }
|
{ startIndex: 30, type: 'delimiter.html' }
|
||||||
]
|
]
|
||||||
|
}],
|
||||||
|
|
||||||
|
[{
|
||||||
|
line: '{{test "coloring/looks broken"}}">',
|
||||||
|
tokens: [
|
||||||
|
{ startIndex: 0, type: 'delimiter.handlebars' },
|
||||||
|
{ startIndex: 2, type: 'variable.parameter.handlebars' },
|
||||||
|
{ startIndex: 6, type: '' },
|
||||||
|
{ startIndex: 7, type: 'string.handlebars' },
|
||||||
|
{ startIndex: 30, type: 'delimiter.handlebars' },
|
||||||
|
{ startIndex: 32, type: '' }
|
||||||
|
]
|
||||||
}]
|
}]
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -220,6 +220,7 @@ export const language = <ILanguage>{
|
||||||
],
|
],
|
||||||
|
|
||||||
handlebarsRoot: [
|
handlebarsRoot: [
|
||||||
|
[/"[^"]*"/, 'string.handlebars'],
|
||||||
[/[#/][^\s}]+/, 'keyword.helper.handlebars'],
|
[/[#/][^\s}]+/, 'keyword.helper.handlebars'],
|
||||||
[/else\b/, 'keyword.helper.handlebars'],
|
[/else\b/, 'keyword.helper.handlebars'],
|
||||||
[/[\s]+/],
|
[/[\s]+/],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue