Skip to content

Commit

Permalink
Update highlight queries
Browse files Browse the repository at this point in the history
  • Loading branch information
irh committed Jan 25, 2024
1 parent bb6d316 commit 3b240d4
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@

[
"and"
(break)
(continue)
"not"
"or"
] @keyword.operator

[
"return"
"yield"
] @keyword
] @keyword.return

[
"if"
Expand All @@ -37,31 +38,33 @@
"else if"
"match"
"switch"
] @conditional
] @keyword.conditional

[
(break)
(continue)
"for"
"in"
"loop"
"until"
"while"
] @repeat
] @keyword.repeat

[
"throw"
"try"
"catch"
"finally"
] @exception

["(" ")" "[" "]" "|"] @punctuation.bracket
] @keyword.exception

[
"export"
"from"
"import"
"as"
] @include
"export"
"from"
"import"
"as"
] @keyword.import

["(" ")" "[" "]" "{" "}" "|"] @punctuation.bracket

(identifier) @variable

Expand All @@ -74,7 +77,7 @@

[(true) (false)] @boolean
(comment) @comment
(debug) @debug
(debug) @keyword.debug
(string) @string
(escape) @string.escape
(null) @constant.builtin
Expand Down

0 comments on commit 3b240d4

Please sign in to comment.