aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Brash2022-04-17 06:14:55 +0000
committerGitHub2022-04-17 06:14:55 +0000
commitc45fb08a9389e21d9694059819aed940ba446a0b (patch)
tree6856cf0d4c9a911a194c1200f397a9b2a8da4886
parentb67e0616dd45089b6ffbfe6f416598638bb8d7eb (diff)
Add JavaScript control keywords (#2140)
-rw-r--r--runtime/queries/javascript/highlights.scm35
1 files changed, 19 insertions, 16 deletions
diff --git a/runtime/queries/javascript/highlights.scm b/runtime/queries/javascript/highlights.scm
index 6163b680..2616dffa 100644
--- a/runtime/queries/javascript/highlights.scm
+++ b/runtime/queries/javascript/highlights.scm
@@ -163,43 +163,46 @@
[
"as"
"async"
- "await"
- "break"
- "case"
- "catch"
"class"
"const"
- "continue"
"debugger"
- "default"
"delete"
- "do"
- "else"
"export"
"extends"
- "finally"
- "for"
"from"
"function"
"get"
- "if"
"import"
"in"
"instanceof"
"let"
"new"
"of"
- "return"
"set"
"static"
- "switch"
"target"
- "throw"
"try"
"typeof"
"var"
"void"
- "while"
"with"
- "yield"
] @keyword
+
+[
+ "switch"
+ "case"
+ "default"
+ "if"
+ "else"
+ "yield"
+ "throw"
+ "finally"
+ "return"
+ "catch"
+ "continue"
+ "while"
+ "break"
+ "for"
+ "do"
+ "await"
+] @keyword.control