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

(cherry picked from commit 9f5744a92d)
This commit is contained in:
SkyZeroZx 2025-12-15 13:31:38 -05:00 committed by Andrew Kushnir
parent 48492524ea
commit e0694df3ec
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ import {GrammarDefinition} from './types';
export const Template: GrammarDefinition = {
scopeName: 'template.ng',
injectionSelector: 'L:text.html -comment -control.block.ng',
injectionSelector: 'L:text.html -comment -control.block.ng -meta.definition.variable.ng',
patterns: [{include: '#interpolation'}],
repository: {
interpolation: {

View file

@ -1,6 +1,6 @@
{
"scopeName": "template.ng",
"injectionSelector": "L:text.html -comment -control.block.ng",
"injectionSelector": "L:text.html -comment -control.block.ng -meta.definition.variable.ng",
"patterns": [
{
"include": "#interpolation"