Skip to content

Commit

Permalink
refactor(syntaxes): Include template block syntax under template
Browse files Browse the repository at this point in the history
  • Loading branch information
atscott committed Nov 3, 2023
1 parent 3cfdbd2 commit a9f02bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@
},
{
"path": "./syntaxes/template-blocks.json",
"scopeName": "template.blocks.ng",
"injectTo": ["text.html.derivative"]
"scopeName": "template.blocks.ng"
},
{
"path": "./syntaxes/expression.json",
Expand Down
1 change: 1 addition & 0 deletions syntaxes/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const Template: GrammarDefinition = {
scopeName: 'template.ng',
injectionSelector: 'L:text.html -comment',
patterns: [
{include: 'template.blocks.ng'},
{include: '#interpolation'},
{include: '#propertyBinding'},
{include: '#eventBinding'},
Expand Down
3 changes: 3 additions & 0 deletions 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

0 comments on commit a9f02bb

Please sign in to comment.