improve handlebars tokens

pull/2748/head
Alex Dima 2016-10-06 17:26:19 +02:00
parent cd6cee8241
commit ac89ee029e
2 changed files with 6 additions and 6 deletions

View File

@ -215,14 +215,14 @@ export var language = <ILanguage> {
handlebarsInSimpleState: [
[/\{\{\{?/, 'metatag.handlebars'],
[/\}\}\}?/, { token: 'metatag.handlebars', switchTo: '@$S2.$S3' }],
[/\{\{\{?/, 'punctuation.handlebars'],
[/\}\}\}?/, { token: 'punctuation.handlebars', switchTo: '@$S2.$S3' }],
{ include: 'handlebarsRoot' }
],
handlebarsInEmbeddedState: [
[/\{\{\{?/, 'metatag.handlebars'],
[/\}\}\}?/, { token: 'metatag.handlebars', switchTo: '@$S2.$S3', nextEmbedded: '$S3' }],
[/\{\{\{?/, 'punctuation.handlebars'],
[/\}\}\}?/, { token: 'punctuation.handlebars', switchTo: '@$S2.$S3', nextEmbedded: '$S3' }],
{ include: 'handlebarsRoot' }
],

View File

@ -18,8 +18,8 @@ function getTag(name: string) {
}
const handlebarsTokenTypes = {
EMBED: 'metatag.handlebars',
EMBED_UNESCAPED: 'metatag.handlebars',
EMBED: 'punctuation.handlebars',
EMBED_UNESCAPED: 'punctuation.handlebars',
KEYWORD: 'keyword.helper.handlebars',
VARIABLE: 'variable.parameter.handlebars',
}