aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/javascript
diff options
context:
space:
mode:
authorJake Langford2022-07-06 13:54:07 +0000
committerGitHub2022-07-06 13:54:07 +0000
commit230ba264bf78d9b4ecd42440f0cbb20529f9c235 (patch)
tree5dc84b7ee53ef7049912d1e7a3851d95a0df6df4 /runtime/queries/javascript
parente35abe38f31149785ea04dc8a8fc1d2649ba70af (diff)
Introduce storage highlighting for typescript/javascript (#2961)
Diffstat (limited to 'runtime/queries/javascript')
-rw-r--r--runtime/queries/javascript/highlights.scm19
1 files changed, 13 insertions, 6 deletions
diff --git a/runtime/queries/javascript/highlights.scm b/runtime/queries/javascript/highlights.scm
index 2616dffa..9a759081 100644
--- a/runtime/queries/javascript/highlights.scm
+++ b/runtime/queries/javascript/highlights.scm
@@ -163,19 +163,14 @@
[
"as"
"async"
- "class"
- "const"
"debugger"
"delete"
- "export"
"extends"
"from"
"function"
"get"
- "import"
"in"
"instanceof"
- "let"
"new"
"of"
"set"
@@ -183,12 +178,18 @@
"target"
"try"
"typeof"
- "var"
"void"
"with"
] @keyword
[
+ "class"
+ "let"
+ "const"
+ "var"
+] @keyword.storage.type
+
+[
"switch"
"case"
"default"
@@ -206,3 +207,9 @@
"do"
"await"
] @keyword.control
+
+[
+ "import"
+ "export"
+] @keyword.control.import
+