Skip to content

Commit

Permalink
fix(angular): Make block syntax grammars more restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
atscott committed Nov 8, 2023
1 parent c8ec934 commit 5c3f4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammars/angular/syntaxes/template-blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "keyword.control.block.transition.ng"
},
"block": {
"begin": "(@)((?:\\w+\\s*)+)",
"begin": "(@)((?:\\w+\\s*)+)(?=\\(|\\{)",
"beginCaptures": {
"1": {
"patterns": [
Expand Down Expand Up @@ -46,7 +46,7 @@
"contentName": "control.block.expression.ng",
"patterns": [
{
"include": "source.js"
"include": "expression.ng"
}
],
"end": "\\)",
Expand Down

0 comments on commit 5c3f4a5

Please sign in to comment.