Skip to content

Commit 00b188b

Browse files
committed
Merge pull request #103 from Microsoft/fixSwitchColor
Fixes the color of the switch keyword.
2 parents 4007205 + ebdcade commit 00b188b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/baselines/javascript.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[1, 1]: source.ts switch-statement.expr.ts switch-expression.expr.ts keyword.control.ts
2+
[2, 5]: source.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts keyword.control.ts
3+
[3, 5]: source.ts switch-statement.expr.ts switch-block.expr.ts case-clause.expr.ts keyword.control.ts
4+
[5, 1]: source.ts keyword.operator.ts
5+
[6, 1]: source.ts keyword.operator.ts
6+
[7, 1]: source.ts keyword.operator.ts
7+
[8, 3]: source.ts keyword.operator.ts

tests/cases/javascript.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
^^switch (x) {
2+
^^case 0:
3+
^^default:
4+
}
5+
^^typeof x;
6+
^^void x;
7+
^^delete x.y;
8+
x ^^instanceof y;

0 commit comments

Comments
 (0)