mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
improve handlebars tokens
This commit is contained in:
parent
cd6cee8241
commit
ac89ee029e
2 changed files with 6 additions and 6 deletions
|
|
@ -215,14 +215,14 @@ export var language = <ILanguage> {
|
||||||
|
|
||||||
|
|
||||||
handlebarsInSimpleState: [
|
handlebarsInSimpleState: [
|
||||||
[/\{\{\{?/, 'metatag.handlebars'],
|
[/\{\{\{?/, 'punctuation.handlebars'],
|
||||||
[/\}\}\}?/, { token: 'metatag.handlebars', switchTo: '@$S2.$S3' }],
|
[/\}\}\}?/, { token: 'punctuation.handlebars', switchTo: '@$S2.$S3' }],
|
||||||
{ include: 'handlebarsRoot' }
|
{ include: 'handlebarsRoot' }
|
||||||
],
|
],
|
||||||
|
|
||||||
handlebarsInEmbeddedState: [
|
handlebarsInEmbeddedState: [
|
||||||
[/\{\{\{?/, 'metatag.handlebars'],
|
[/\{\{\{?/, 'punctuation.handlebars'],
|
||||||
[/\}\}\}?/, { token: 'metatag.handlebars', switchTo: '@$S2.$S3', nextEmbedded: '$S3' }],
|
[/\}\}\}?/, { token: 'punctuation.handlebars', switchTo: '@$S2.$S3', nextEmbedded: '$S3' }],
|
||||||
{ include: 'handlebarsRoot' }
|
{ include: 'handlebarsRoot' }
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ function getTag(name: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const handlebarsTokenTypes = {
|
const handlebarsTokenTypes = {
|
||||||
EMBED: 'metatag.handlebars',
|
EMBED: 'punctuation.handlebars',
|
||||||
EMBED_UNESCAPED: 'metatag.handlebars',
|
EMBED_UNESCAPED: 'punctuation.handlebars',
|
||||||
KEYWORD: 'keyword.helper.handlebars',
|
KEYWORD: 'keyword.helper.handlebars',
|
||||||
VARIABLE: 'variable.parameter.handlebars',
|
VARIABLE: 'variable.parameter.handlebars',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue