diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-10-28 16:57:38 +0300 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2022-11-26 13:17:51 +0200 |
| commit | 1a767376cdb968f43af690ccac7001d2efbefb87 (patch) | |
| tree | 05d20b33f52208c434d0eb608290ecd4ca048a3a /queries/zig | |
| parent | highlights(toml): fix captures (diff) | |
| download | nvim-treesitter-1a767376cdb968f43af690ccac7001d2efbefb87.tar nvim-treesitter-1a767376cdb968f43af690ccac7001d2efbefb87.tar.gz nvim-treesitter-1a767376cdb968f43af690ccac7001d2efbefb87.tar.bz2 nvim-treesitter-1a767376cdb968f43af690ccac7001d2efbefb87.tar.lz nvim-treesitter-1a767376cdb968f43af690ccac7001d2efbefb87.tar.xz nvim-treesitter-1a767376cdb968f43af690ccac7001d2efbefb87.tar.zst nvim-treesitter-1a767376cdb968f43af690ccac7001d2efbefb87.zip | |
highlights(zig): fix captures
Diffstat (limited to 'queries/zig')
| -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 [ |
