From d2a45aa5318b7b1a6d66dbdd7d2d592dd5bb21d7 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Fri, 24 Feb 2023 06:38:47 -0500 Subject: refactor(zig): `@type.definition` items belong in `@keyword`, differentiate `@boolean` from `@constant.builtin` --- queries/zig/highlights.scm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'queries/zig') 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 @@ -79,6 +79,11 @@ field_constant: (IDENTIFIER) @constant (FLOAT) @float +[ + "true" + "false" +] @boolean + [ (LINESTRING) (STRINGLITERALSINGLE) @@ -96,6 +101,11 @@ field_constant: (IDENTIFIER) @constant "defer" "errdefer" "test" + "struct" + "union" + "enum" + "opaque" + "error" ] @keyword [ @@ -147,14 +157,6 @@ field_constant: (IDENTIFIER) @constant (BuildinTypeExpr) ] @type.builtin -[ - "struct" - "union" - "enum" - "opaque" - "error" -] @type.definition - [ "const" "var" @@ -185,8 +187,6 @@ field_constant: (IDENTIFIER) @constant "null" "unreachable" "undefined" - "true" - "false" ] @constant.builtin [ -- cgit v1.2.3-70-g09d2