refactor(zig): @type.definition items belong in @keyword, differentiate @boolean from @constant.builtin

This commit is contained in:
Amaan Qureshi 2023-02-24 06:38:47 -05:00 committed by Stephan Seitz
parent 3c8842c79a
commit d2a45aa531

View file

@ -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
[