Skip to content

Commit 7e9c936

Browse files
authored
fix(angular): Make block syntax grammars more restrictive (#9)
1 parent c8ec934 commit 7e9c936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/angular/syntaxes/template-blocks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"name": "keyword.control.block.transition.ng"
1313
},
1414
"block": {
15-
"begin": "(@)((?:\\w+\\s*)+)",
15+
"begin": "(@)((?:\\w+\\s*)+)(?=\\(|\\{)",
1616
"beginCaptures": {
1717
"1": {
1818
"patterns": [
@@ -46,7 +46,7 @@
4646
"contentName": "control.block.expression.ng",
4747
"patterns": [
4848
{
49-
"include": "source.js"
49+
"include": "expression.ng"
5050
}
5151
],
5252
"end": "\\)",

0 commit comments

Comments
 (0)