mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17: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
|
||||
|
||||
[
|
||||
"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
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue