Skip to content

Commit

Permalink
Angular grammar updates from angular/vscode-ng-language-service#1953
Browse files Browse the repository at this point in the history
  • Loading branch information
fvsch committed Nov 6, 2023
1 parent eab43d9 commit b90a6aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
3 changes: 3 additions & 0 deletions grammars/angular/syntaxes/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"scopeName": "template.ng",
"injectionSelector": "L:text.html -comment",
"patterns": [
{
"include": "template.blocks.ng"
},
{
"include": "#interpolation"
},
Expand Down
12 changes: 2 additions & 10 deletions grammars/grammars.json
Original file line number Diff line number Diff line change
Expand Up @@ -620,23 +620,15 @@
"base": "angular",
"file": "template.json"
},
"injectTo": ["text.html.derivative", "source.ts"],
"embeddedLanguages": {
"text.html": "html",
"source.css": "css"
}
"injectTo": ["text.html.derivative"]
},
{
"scopeName": "template.blocks.ng",
"grammar": {
"base": "angular",
"file": "template-blocks.json"
},
"injectTo": ["text.html.derivative", "source.ts"],
"embeddedLanguages": {
"text.html": "html",
"source.js": "javascript"
}
"injectTo": ["text.html.derivative"]
},
{
"scopeName": "expression.ng",
Expand Down

0 comments on commit b90a6aa

Please sign in to comment.