Alex Dima 5 years ago
parent 229378ae98
commit b6b3e0a0db
No known key found for this signature in database
GPG Key ID: 6E58D7B045760DA0

@ -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: '' }
]
}]
]);

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

Loading…
Cancel
Save