File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ version: 2
9
9
extends : Packages/HTML/HTML.sublime-syntax
10
10
11
11
variables :
12
- angular_blocks : (?<=\@)\b(?xi:for | if | else | else if | switch | case | empty | placeholder | defer | default | error | loading)\b
12
+ angular_blocks : (?<=\@)\b(?xi:for | if | else | else if | switch | case | empty | placeholder | defer | default | error | loading | let )\b
13
13
14
14
contexts :
15
15
main :
16
16
- meta_prepend : true
17
17
- include : interpolation
18
- - include : angular-blocks
18
+ - include : ng-control-flow
19
19
20
20
interpolation :
21
21
- match : ' {{'
@@ -88,12 +88,19 @@ contexts:
88
88
- tag-event-attribute-assignment
89
89
90
90
91
- angular-blocks :
91
+ ng-control-flow :
92
92
- match : ' (@){{angular_blocks}}'
93
93
scope : keyword.control.control-flow.html
94
94
captures :
95
95
1 : punctuation.definition.keyword.html
96
96
push :
97
+ - match : ' ='
98
+ scope : punctuation.section.let.begin.ngx.html
99
+ push :
100
+ - meta_scope : meta.let.ngx.html
101
+ - match : ' ;'
102
+ scope : punctuation.section.let.end.ngx.html
103
+ pop : 2
97
104
- match : \{
98
105
scope : punctuation.section.block.begin.html
99
106
push :
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ Highlighting the JS part as JS. So,
31
31
32
32
Now it supports Angular control flow.
33
33
34
+ ```
35
+ @let myVar = myObservable | async;
36
+ ```
37
+
34
38
```
35
39
@for (item of items) {
36
40
<a [href]="item.link">{{item.title}}</a>
You can’t perform that action at this time.
0 commit comments