mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00: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:
parent
48492524ea
commit
e0694df3ec
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue