Skip to content

Commit

Permalink
[JavaScript] [TypeScript] Use keyword.declaration for class, interfac…
Browse files Browse the repository at this point in the history
…e, and namespace. (sublimehq#2645)
  • Loading branch information
Thom1729 authored and mitranim committed Mar 20, 2022
1 parent 96117da commit 3b68788
Show file tree
Hide file tree
Showing 6 changed files with 568 additions and 16 deletions.
2 changes: 1 addition & 1 deletion JavaScript/JavaScript.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ contexts:

class:
- match: class{{identifier_break}}
scope: storage.type.class.js
scope: keyword.declaration.class.js
set:
- class-meta
- class-body
Expand Down
4 changes: 2 additions & 2 deletions JavaScript/TypeScript.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ contexts:

ts-interface-declaration:
- match: interface{{identifier_break}}
scope: storage.type.js
scope: keyword.declaration.js
set:
- ts-interface-meta
- ts-type-body
Expand Down Expand Up @@ -330,7 +330,7 @@ contexts:

ts-namespace-declaration:
- match: namespace{{identifier_break}}
scope: storage.type.js
scope: keyword.declaration.js
set:
- ts-namespace-meta
- block
Expand Down
Binary file added JavaScript/tests/.DS_Store
Binary file not shown.
Loading

0 comments on commit 3b68788

Please sign in to comment.