mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
76 lines
1.5 KiB
JSON
76 lines
1.5 KiB
JSON
{
|
|
"scopeName": "inline-template.ng",
|
|
"injectionSelector": "L:meta.decorator.ts -comment -text.html",
|
|
"patterns": [
|
|
{
|
|
"include": "#inlineTemplate"
|
|
}
|
|
],
|
|
"repository": {
|
|
"inlineTemplate": {
|
|
"begin": "(template)\\s*(:)",
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "meta.object-literal.key.ts"
|
|
},
|
|
"2": {
|
|
"name": "meta.object-literal.key.ts punctuation.separator.key-value.ts"
|
|
}
|
|
},
|
|
"end": "(?=,|})",
|
|
"patterns": [
|
|
{
|
|
"include": "#tsParenExpression"
|
|
},
|
|
{
|
|
"include": "#ngTemplate"
|
|
}
|
|
]
|
|
},
|
|
"tsParenExpression": {
|
|
"begin": "\\G\\s*(\\()",
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "meta.brace.round.ts"
|
|
}
|
|
},
|
|
"end": "\\)",
|
|
"endCaptures": {
|
|
"0": {
|
|
"name": "meta.brace.round.ts"
|
|
}
|
|
},
|
|
"patterns": [
|
|
{
|
|
"include": "#tsParenExpression"
|
|
},
|
|
{
|
|
"include": "#ngTemplate"
|
|
}
|
|
]
|
|
},
|
|
"ngTemplate": {
|
|
"begin": "\\G\\s*([`|'|\"])",
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"end": "\\1",
|
|
"endCaptures": {
|
|
"0": {
|
|
"name": "string"
|
|
}
|
|
},
|
|
"contentName": "text.html.derivative",
|
|
"patterns": [
|
|
{
|
|
"include": "text.html.derivative"
|
|
},
|
|
{
|
|
"include": "template.ng"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|