aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/zig/highlights.scm20
1 files changed, 10 insertions, 10 deletions
diff --git a/queries/zig/highlights.scm b/queries/zig/highlights.scm
index 60e5b373a..0989704ce 100644
--- a/queries/zig/highlights.scm
+++ b/queries/zig/highlights.scm
@@ -80,6 +80,11 @@ field_constant: (IDENTIFIER) @constant
(FLOAT) @float
[
+ "true"
+ "false"
+] @boolean
+
+[
(LINESTRING)
(STRINGLITERALSINGLE)
] @string @spell
@@ -96,6 +101,11 @@ field_constant: (IDENTIFIER) @constant
"defer"
"errdefer"
"test"
+ "struct"
+ "union"
+ "enum"
+ "opaque"
+ "error"
] @keyword
[
@@ -148,14 +158,6 @@ field_constant: (IDENTIFIER) @constant
] @type.builtin
[
- "struct"
- "union"
- "enum"
- "opaque"
- "error"
-] @type.definition
-
-[
"const"
"var"
"volatile"
@@ -185,8 +187,6 @@ field_constant: (IDENTIFIER) @constant
"null"
"unreachable"
"undefined"
- "true"
- "false"
] @constant.builtin
[