diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-02-24 06:38:47 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-03-03 07:07:52 -0800 |
| commit | d2a45aa5318b7b1a6d66dbdd7d2d592dd5bb21d7 (patch) | |
| tree | 250cee4c8d0bf04eb588f35a4ee96fe391e6b136 /queries/zig | |
| parent | refactor(ruby): move keywords appropriately (diff) | |
| download | nvim-treesitter-d2a45aa5318b7b1a6d66dbdd7d2d592dd5bb21d7.tar nvim-treesitter-d2a45aa5318b7b1a6d66dbdd7d2d592dd5bb21d7.tar.gz nvim-treesitter-d2a45aa5318b7b1a6d66dbdd7d2d592dd5bb21d7.tar.bz2 nvim-treesitter-d2a45aa5318b7b1a6d66dbdd7d2d592dd5bb21d7.tar.lz nvim-treesitter-d2a45aa5318b7b1a6d66dbdd7d2d592dd5bb21d7.tar.xz nvim-treesitter-d2a45aa5318b7b1a6d66dbdd7d2d592dd5bb21d7.tar.zst nvim-treesitter-d2a45aa5318b7b1a6d66dbdd7d2d592dd5bb21d7.zip | |
refactor(zig): `@type.definition` items belong in `@keyword`, differentiate `@boolean` from `@constant.builtin`
Diffstat (limited to 'queries/zig')
| -rw-r--r-- | queries/zig/highlights.scm | 20 |
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 [ |
