aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/zig/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/zig/highlights.scm')
-rw-r--r--runtime/queries/zig/highlights.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/queries/zig/highlights.scm b/runtime/queries/zig/highlights.scm
index e2e79518..d6b1f95a 100644
--- a/runtime/queries/zig/highlights.scm
+++ b/runtime/queries/zig/highlights.scm
@@ -14,7 +14,7 @@
field_access: (IDENTIFIER)
parameter: (IDENTIFIER)
] @type
- (#match? @type "^[A-Z]([a-z]+[A-Za-z0-9]*)*$")
+ (#match? @type "^[A-Z]([a-z]+[A-Za-z0-9]*)+$")
)
;; assume camelCase is a function
@@ -122,8 +122,11 @@ field_constant: (IDENTIFIER) @constant
] @keyword.operator
[
- "struct"
"enum"
+] @type.enum
+
+[
+ "struct"
"union"
"packed"
"opaque"