File tree Expand file tree Collapse file tree 5 files changed +44
-0
lines changed Expand file tree Collapse file tree 5 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -1162,6 +1162,7 @@ repository:
1162
1162
endCaptures :
1163
1163
' 0 ' : {name: punctuation.definition.block.ts}
1164
1164
patterns :
1165
+ - include : ' #comment'
1165
1166
- name : switch-expression.expr.ts
1166
1167
begin : ' {{startOfIdentifier}}(switch)\s*(\()'
1167
1168
beginCaptures :
Original file line number Diff line number Diff line change 3749
3749
</dict >
3750
3750
<key >patterns </key >
3751
3751
<array >
3752
+ <dict >
3753
+ <key >include </key >
3754
+ <string >#comment </string >
3755
+ </dict >
3752
3756
<dict >
3753
3757
<key >name </key >
3754
3758
<string >switch-expression.expr.ts </string >
Original file line number Diff line number Diff line change 3753
3753
</dict >
3754
3754
<key >patterns </key >
3755
3755
<array >
3756
+ <dict >
3757
+ <key >include </key >
3758
+ <string >#comment </string >
3759
+ </dict >
3756
3760
<dict >
3757
3761
<key >name </key >
3758
3762
<string >switch-expression.expr.tsx </string >
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ switch (0) // discard and renew state per mode
4
+ {
5
+ }
6
+ -----------------------------------
7
+
8
+ Grammar: TypeScript.tmLanguage
9
+ -----------------------------------
10
+ >switch (0) // discard and renew state per mode
11
+ ^^^^^^
12
+ source.ts switch-statement.expr.ts switch-expression.expr.ts keyword.control.switch.ts
13
+ ^
14
+ source.ts switch-statement.expr.ts switch-expression.expr.ts
15
+ ^
16
+ source.ts switch-statement.expr.ts switch-expression.expr.ts meta.brace.round.ts
17
+ ^
18
+ source.ts switch-statement.expr.ts switch-expression.expr.ts constant.numeric.decimal.ts
19
+ ^
20
+ source.ts switch-statement.expr.ts switch-expression.expr.ts meta.brace.round.ts
21
+ ^
22
+ source.ts switch-statement.expr.ts
23
+ ^^
24
+ source.ts switch-statement.expr.ts comment.line.double-slash.ts punctuation.definition.comment.ts
25
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
+ source.ts switch-statement.expr.ts comment.line.double-slash.ts
27
+ >{
28
+ ^
29
+ source.ts switch-statement.expr.ts switch-block.expr.ts punctuation.definition.block.ts
30
+ >}
31
+ ^
32
+ source.ts switch-statement.expr.ts punctuation.definition.block.ts
Original file line number Diff line number Diff line change
1
+ switch ( 0 ) // discard and renew state per mode
2
+ {
3
+ }
You can’t perform that action at this time.
0 commit comments