This commit is contained in:
Alex Dima 2019-12-16 17:28:57 +01:00
parent 229378ae98
commit b6b3e0a0db
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
2 changed files with 13 additions and 0 deletions

View file

@ -269,5 +269,17 @@ testTokenization(['handlebars', 'css'], [
{ startIndex: 8, type: 'attribute.value' },
{ 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: '' }
]
}]
]);

View file

@ -220,6 +220,7 @@ export const language = <ILanguage>{
],
handlebarsRoot: [
[/"[^"]*"/, 'string.handlebars'],
[/[#/][^\s}]+/, 'keyword.helper.handlebars'],
[/else\b/, 'keyword.helper.handlebars'],
[/[\s]+/],