diff options
| -rw-r--r-- | queries/zig/highlights.scm | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/queries/zig/highlights.scm b/queries/zig/highlights.scm index 7767a3e5b..5115eb604 100644 --- a/queries/zig/highlights.scm +++ b/queries/zig/highlights.scm @@ -93,6 +93,13 @@ field_constant: (IDENTIFIER) @constant [ "allowzero" "volatile" + "threadlocal" + "inline" + "noinline" + "noalias" +] @type.qualifier + +[ "anytype" "anyframe" (BuildinTypeExpr) @@ -130,12 +137,27 @@ field_constant: (IDENTIFIER) @constant ] @keyword.operator [ + "packed" + "opaque" + "comptime" +] @storageclass + +[ "struct" "enum" "union" "error" - "packed" - "opaque" + "defer" + "errdefer" + "async" + "nosuspend" + "await" + "suspend" + "resume" + "export" + "extern" + "asm" + "callconv" ] @keyword [ @@ -148,8 +170,6 @@ field_constant: (IDENTIFIER) @constant [ "const" "var" - "comptime" - "threadlocal" "fn" ] @keyword.function @@ -165,31 +185,9 @@ field_constant: (IDENTIFIER) @constant "continue" ] @keyword.return -; Macro -[ - "defer" - "errdefer" - "async" - "nosuspend" - "await" - "suspend" - "resume" - "export" - "extern" -] @function.macro - -; PrecProc -[ - "inline" - "noinline" - "asm" - "callconv" - "noalias" -] @attribute - [ "linksection" - "align" + "align" ] @function.builtin [ |
