mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
52 lines
1.1 KiB
JSON
52 lines
1.1 KiB
JSON
{
|
|
"scopeName": "template.let.ng",
|
|
"injectionSelector": "L:text.html -comment -expression.ng -meta.tag -source.css -source.js",
|
|
"patterns": [
|
|
{
|
|
"include": "#letDeclaration"
|
|
}
|
|
],
|
|
"repository": {
|
|
"letDeclaration": {
|
|
"name": "meta.definition.variable.ng",
|
|
"begin": "(@let)\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)?",
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "storage.type.ng"
|
|
},
|
|
"2": {
|
|
"name": "variable.other.constant.ng"
|
|
},
|
|
"3": {
|
|
"name": "keyword.operator.assignment.ng"
|
|
}
|
|
},
|
|
"patterns": [
|
|
{
|
|
"include": "#letInitializer"
|
|
}
|
|
],
|
|
"end": "(?<=;)"
|
|
},
|
|
"letInitializer": {
|
|
"begin": "\\s*",
|
|
"beginCaptures": {
|
|
"0": {
|
|
"name": "keyword.operator.assignment.ng"
|
|
}
|
|
},
|
|
"contentName": "meta.definition.variable.initializer.ng",
|
|
"patterns": [
|
|
{
|
|
"include": "expression.ng"
|
|
}
|
|
],
|
|
"end": ";",
|
|
"endCaptures": {
|
|
"0": {
|
|
"name": "punctuation.terminator.statement.ng"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|