Skip to content

Commit

Permalink
changed highlighting for true/false
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Apr 3, 2024
1 parent b3d47d9 commit 75c5f7b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions languages/nim/queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
((ident) @storage.type
(#match? @storage.type "^(int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|float|float32|float64|bool|string|char|typed|untyped|openArray|seq|array|set)$"))
((ident) @keyword
(#match? @keyword "^(echo|declared|low|high|ord|async|await|if|else)$"))
(#match? @keyword "^(echo|declared|low|high|ord|async|await|if|else|some|none)$"))

(routine (keyw) (symbol (ident) @variable.function))

Expand Down Expand Up @@ -48,6 +48,11 @@
(float_lit)
] @constant.numeric

[
"true"
"false"
] @constant.numeric

[
(comment)
(docComment)
Expand All @@ -59,8 +64,6 @@

[
"nil"
"true"
"false"
"else"
] @keyword

0 comments on commit 75c5f7b

Please sign in to comment.