mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
863c7eaafe
Migrate the vscode extension for angular into this repository. PR Close #63924
53 lines
1.1 KiB
JSON
53 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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|