angular/vscode-ng-language-service/syntaxes/template.json
SkyZeroZx 9f5744a92d fix(language-service): avoid interpolation highlighting inside @let
This change omits treating `{{ }}` interpolation syntax as valid inside `@let` binding strings, preventing the interpolation curly braces from superseding the match of the surrounding binding expression and ensuring the highlighter reflects the correct semantics of `@let` bindings.

fixes #61643
2025-12-17 09:39:18 -08:00

31 lines
629 B
JSON

{
"scopeName": "template.ng",
"injectionSelector": "L:text.html -comment -control.block.ng -meta.definition.variable.ng",
"patterns": [
{
"include": "#interpolation"
}
],
"repository": {
"interpolation": {
"begin": "{{",
"beginCaptures": {
"0": {
"name": "punctuation.definition.block.ts"
}
},
"end": "}}",
"endCaptures": {
"0": {
"name": "punctuation.definition.block.ts"
}
},
"contentName": "expression.ng",
"patterns": [
{
"include": "expression.ng"
}
]
}
}
}