diff options
author | Erasin Wang | 2023-03-06 16:15:03 +0000 |
---|---|---|
committer | GitHub | 2023-03-06 16:15:03 +0000 |
commit | bc50502b1eef4971d3d3a5518386888bf43ccf8b (patch) | |
tree | 5313896f7bf2cb6b924e49cd8ea54694f9071acf /runtime/queries | |
parent | cfb9986d84764c7f8b3a903f2b092ba0a61dd951 (diff) |
Update highlight for ecma/js/ts (#6205)
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/ecma/highlights.scm | 59 |
1 files changed, 40 insertions, 19 deletions
diff --git a/runtime/queries/ecma/highlights.scm b/runtime/queries/ecma/highlights.scm index 212bb875..7285ab96 100644 --- a/runtime/queries/ecma/highlights.scm +++ b/runtime/queries/ecma/highlights.scm @@ -167,55 +167,76 @@ ] @punctuation.bracket [ - "as" "async" "debugger" "delete" "extends" "from" - "function" "get" - "in" - "instanceof" "new" - "of" "set" - "static" "target" - "try" "typeof" + "instanceof" "void" "with" ] @keyword [ + "of" + "as" + "in" +] @keyword.operator + +[ + "function" +] @keyword.function + +[ "class" "let" - "const" "var" ] @keyword.storage.type [ - "switch" - "case" + "const" + "static" +] @keyword.storage.modifier + +[ "default" - "if" - "else" "yield" - "throw" "finally" - "return" - "catch" - "continue" - "while" - "break" - "for" "do" "await" ] @keyword.control [ + "if" + "else" + "switch" + "case" + "while" +] @keyword.control.conditional + +[ + "for" +] @keyword.control.repeat + +[ "import" "export" ] @keyword.control.import +[ + "return" + "break" + "continue" +] @keyword.control.return + +[ + "throw" + "try" + "catch" +] @keyword.control.exception + |