mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 16:30:02 -04:00
refactor(zig): @type.definition items belong in @keyword, differentiate @boolean from @constant.builtin
This commit is contained in:
parent
3c8842c79a
commit
d2a45aa531
1 changed files with 10 additions and 10 deletions
|
|
@ -79,6 +79,11 @@ field_constant: (IDENTIFIER) @constant
|
||||||
|
|
||||||
(FLOAT) @float
|
(FLOAT) @float
|
||||||
|
|
||||||
|
[
|
||||||
|
"true"
|
||||||
|
"false"
|
||||||
|
] @boolean
|
||||||
|
|
||||||
[
|
[
|
||||||
(LINESTRING)
|
(LINESTRING)
|
||||||
(STRINGLITERALSINGLE)
|
(STRINGLITERALSINGLE)
|
||||||
|
|
@ -96,6 +101,11 @@ field_constant: (IDENTIFIER) @constant
|
||||||
"defer"
|
"defer"
|
||||||
"errdefer"
|
"errdefer"
|
||||||
"test"
|
"test"
|
||||||
|
"struct"
|
||||||
|
"union"
|
||||||
|
"enum"
|
||||||
|
"opaque"
|
||||||
|
"error"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -147,14 +157,6 @@ field_constant: (IDENTIFIER) @constant
|
||||||
(BuildinTypeExpr)
|
(BuildinTypeExpr)
|
||||||
] @type.builtin
|
] @type.builtin
|
||||||
|
|
||||||
[
|
|
||||||
"struct"
|
|
||||||
"union"
|
|
||||||
"enum"
|
|
||||||
"opaque"
|
|
||||||
"error"
|
|
||||||
] @type.definition
|
|
||||||
|
|
||||||
[
|
[
|
||||||
"const"
|
"const"
|
||||||
"var"
|
"var"
|
||||||
|
|
@ -185,8 +187,6 @@ field_constant: (IDENTIFIER) @constant
|
||||||
"null"
|
"null"
|
||||||
"unreachable"
|
"unreachable"
|
||||||
"undefined"
|
"undefined"
|
||||||
"true"
|
|
||||||
"false"
|
|
||||||
] @constant.builtin
|
] @constant.builtin
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue