File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,14 @@ version: 2
8
8
9
9
extends : Packages/HTML/HTML.sublime-syntax
10
10
11
+ variables :
12
+ angular_blocks : (?<=\@)\b(?xi:for | if | else | else if | switch | case | empty | placeholder | defer | default | error | loading)\b
13
+
11
14
contexts :
12
15
main :
13
16
- meta_prepend : true
14
17
- include : interpolation
18
+ - include : angular-blocks
15
19
16
20
interpolation :
17
21
- match : ' {{'
@@ -82,3 +86,33 @@ contexts:
82
86
push :
83
87
- tag-event-attribute-meta
84
88
- tag-event-attribute-assignment
89
+
90
+
91
+ angular-blocks :
92
+ - match : ' (@){{angular_blocks}}'
93
+ scope : keyword.control.control-flow.html
94
+ captures :
95
+ 1 : punctuation.definition.keyword.html
96
+ - match : \(
97
+ scope : punctuation.section.group.begin.html
98
+ push :
99
+ - meta_scope : meta.group.html
100
+ - match : \b(async)\b
101
+ scope : keyword.control.html
102
+ - match : \b(track|of|prefetch on|on|prefetch when|when|as)\b
103
+ scope : keyword.operator.word.html
104
+ - match : \b(minimum|after)\b(\?)
105
+ captures :
106
+ 1 : keyword.operator.word.html
107
+ 2 : keyword.control.question.html
108
+ - match : \)
109
+ scope : punctuation.section.group.end.html
110
+ pop : 1
111
+ - match : \{
112
+ scope : punctuation.section.block.begin.html
113
+ push :
114
+ - meta_scope : meta.block.html
115
+ - include : main
116
+ - match : \}
117
+ scope : punctuation.section.block.end.html
118
+ pop : 1
You can’t perform that action at this time.
0 commit comments