Skip to content

Commit

Permalink
adds (java|type)script storage highlight queries
Browse files Browse the repository at this point in the history
  • Loading branch information
jakenvac committed Jul 6, 2022
1 parent e35abe3 commit f104492
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
19 changes: 13 additions & 6 deletions runtime/queries/javascript/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -163,31 +163,32 @@
[
"as"
"async"
"class"
"const"
"debugger"
"delete"
"export"
"extends"
"from"
"function"
"get"
"import"
"in"
"instanceof"
"let"
"new"
"of"
"set"
"static"
"target"
"try"
"typeof"
"var"
"void"
"with"
] @keyword

[
"class"
"let"
"const"
"var"
] @keyword.storage.type

[
"switch"
"case"
Expand All @@ -206,3 +207,9 @@
"do"
"await"
] @keyword.control

[
"import"
"export"
] @keyword.control.import

16 changes: 11 additions & 5 deletions runtime/queries/typescript/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,21 @@
[
"abstract"
"declare"
"enum"
"export"
"implements"
"interface"
"keyof"
"namespace"
] @keyword

[
"type"
"interface"
"enum"
] @keyword.storage.type

[
"public"
"private"
"protected"
"public"
"type"
"readonly"
] @keyword
] @keyword.storage.modifier

0 comments on commit f104492

Please sign in to comment.