File tree Expand file tree Collapse file tree
vscode-ng-language-service/syntaxes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ export const TemplateBlocks: GrammarDefinition = {
1919 } ,
2020
2121 block : {
22- begin : / ( @ ) ( i f | e l s e i f | e l s e | d e f e r | p l a c e h o l d e r | l o a d i n g | e r r o r | s w i t c h | f o r | e m p t y ) (?: \s * ) / ,
22+ begin :
23+ / ( @ ) ( i f | e l s e i f | e l s e | d e f e r | p l a c e h o l d e r | l o a d i n g | e r r o r | s w i t c h | f o r | e m p t y | b o u n d a r y ) (?: \s * ) / ,
2324 beginCaptures : {
2425 1 : {
2526 patterns : [ { include : '#transition' } ] ,
Original file line number Diff line number Diff line change 1212 "name" : " keyword.control.block.transition.ng"
1313 },
1414 "block" : {
15- "begin" : " (@)(if|else if|else|defer|placeholder|loading|error|switch|for|empty)(?:\\ s*)" ,
15+ "begin" : " (@)(if|else if|else|defer|placeholder|loading|error|switch|for|empty|boundary )(?:\\ s*)" ,
1616 "beginCaptures" : {
1717 "1" : {
1818 "patterns" : [
Original file line number Diff line number Diff line change 66 < a > </ a >
77}
88
9+ @boundary {
10+ < a > </ a >
11+ }
12+
913@switch (a) {
1014 @case(0) @case (1) {
1115 {{getCase1()}}
Original file line number Diff line number Diff line change 2727> }
2828#^ template .blocks .ng control .block .ng punctuation .definition .block .ts
2929>
30+ > @boundary {
31+ #^ template .blocks .ng control .block .ng keyword .control .block .transition .ng
32+ # ^^^^^^^^ template .blocks .ng control .block .ng keyword .control .block .kind .ng
33+ # ^ template .blocks .ng control .block .ng
34+ # ^ template .blocks .ng control .block .ng punctuation .definition .block .ts
35+ > <a ></a >
36+ #^^^^^^^^^^^^ template .blocks .ng control .block .ng control .block .body .ng
37+ > }
38+ #^ template .blocks .ng control .block .ng punctuation .definition .block .ts
39+ >
3040> @switch (a ) {
3141#^ template .blocks .ng control .block .ng keyword .control .block .transition .ng
3242# ^^^^^^ template .blocks .ng control .block .ng keyword .control .block .kind .ng
You can’t perform that action at this time.
0 commit comments