File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1162,6 +1162,7 @@ repository:
11621162 endCaptures :
11631163 ' 0 ' : {name: punctuation.definition.block.ts}
11641164 patterns :
1165+ - include : ' #comment'
11651166 - name : switch-expression.expr.ts
11661167 begin : ' {{startOfIdentifier}}(switch)\s*(\()'
11671168 beginCaptures :
Original file line number Diff line number Diff line change 37493749 </dict >
37503750 <key >patterns </key >
37513751 <array >
3752+ <dict >
3753+ <key >include </key >
3754+ <string >#comment </string >
3755+ </dict >
37523756 <dict >
37533757 <key >name </key >
37543758 <string >switch-expression.expr.ts </string >
Original file line number Diff line number Diff line change 37533753 </dict >
37543754 <key >patterns </key >
37553755 <array >
3756+ <dict >
3757+ <key >include </key >
3758+ <string >#comment </string >
3759+ </dict >
37563760 <dict >
37573761 <key >name </key >
37583762 <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