Skip to content

Commit 66b80b8

Browse files
committed
add 'as' keyword
1 parent 69e4b83 commit 66b80b8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

TypeScript.YAML-tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ repository:
487487

488488
expression-operator:
489489
name: keyword.operator.ts
490-
match: =>|\b(delete|export|import|in|instanceof|module|namespace|new|typeof|void)\b
490+
match: =>|\b(delete|export|import|in|instanceof|module|namespace|new|typeof|void|as)\b
491491

492492
arithmetic-operator:
493493
name: keyword.operator.arithmetic.ts

TypeScript.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@
408408
<key>expression-operator</key>
409409
<dict>
410410
<key>match</key>
411-
<string>=&gt;|\b(delete|export|import|in|instanceof|module|namespace|new|typeof|void)\b</string>
411+
<string>=&gt;|\b(delete|export|import|in|instanceof|module|namespace|new|typeof|void|as)\b</string>
412412
<key>name</key>
413413
<string>keyword.operator.ts</string>
414414
</dict>

TypeScriptReact.YAML-tmLanguage

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Similar to TypeScript.YAML-tmLanguage except:
22
# - Remove type assertion (cast.expr.tsx)
3-
# - Add the "as" keyword.
43
# - Add JSX expression (HTML-like expression).
54
---
65
name: TypeScriptReact
@@ -777,4 +776,4 @@ repository:
777776
patterns:
778777
- include: '#jsx-children'
779778

780-
...
779+
...

0 commit comments

Comments
 (0)