mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
31 lines
629 B
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|