Skip to content

Commit

Permalink
fix(angular): Exclude template block grammars in CSS and JS contexts
Browse files Browse the repository at this point in the history
This commit ensures the Angular template block syntax highlighting does
not apply in in the HTML language where it has transitioned to embedded
`css` or `js` (i.e. in `script` tags).
  • Loading branch information
atscott committed Dec 6, 2023
1 parent b6991cf commit ea306d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammars/angular/syntaxes/template-blocks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scopeName": "template.blocks.ng",
"injectionSelector": "L:text.html -comment -expression.ng -meta.tag",
"injectionSelector": "L:text.html -comment -expression.ng -meta.tag -source.css -source.js",
"patterns": [
{
"include": "#block"
Expand Down

0 comments on commit ea306d6

Please sign in to comment.