Skip to content

Commit

Permalink
Update highlight for ecma/js/ts (helix-editor#6205)
Browse files Browse the repository at this point in the history
  • Loading branch information
erasin authored and wes-adams committed Jul 3, 2023
1 parent c289835 commit d0e7dd8
Showing 1 changed file with 40 additions and 19 deletions.
59 changes: 40 additions & 19 deletions runtime/queries/ecma/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d0e7dd8

Please sign in to comment.