mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Kushnir
parent
48492524ea
commit
e0694df3ec
@@ -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: {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user