mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
feat(zig): misc improvements
This commit is contained in:
parent
d5a1c2b0c8
commit
925490e34d
1 changed files with 21 additions and 15 deletions
|
|
@ -100,6 +100,8 @@ field_constant: (IDENTIFIER) @constant
|
||||||
"test"
|
"test"
|
||||||
"opaque"
|
"opaque"
|
||||||
"error"
|
"error"
|
||||||
|
"const"
|
||||||
|
"var"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -155,27 +157,22 @@ field_constant: (IDENTIFIER) @constant
|
||||||
] @type.builtin
|
] @type.builtin
|
||||||
|
|
||||||
[
|
[
|
||||||
"const"
|
|
||||||
"var"
|
|
||||||
"volatile"
|
"volatile"
|
||||||
"allowzero"
|
"allowzero"
|
||||||
"noalias"
|
"noalias"
|
||||||
] @keyword.modifier
|
|
||||||
|
|
||||||
[
|
|
||||||
"addrspace"
|
"addrspace"
|
||||||
"align"
|
"align"
|
||||||
"callconv"
|
"callconv"
|
||||||
"linksection"
|
"linksection"
|
||||||
|
"pub"
|
||||||
|
"inline"
|
||||||
|
"noinline"
|
||||||
|
"extern"
|
||||||
] @keyword.modifier
|
] @keyword.modifier
|
||||||
|
|
||||||
[
|
[
|
||||||
"comptime"
|
"comptime"
|
||||||
"extern"
|
|
||||||
"inline"
|
|
||||||
"noinline"
|
|
||||||
"packed"
|
"packed"
|
||||||
"pub"
|
|
||||||
"threadlocal"
|
"threadlocal"
|
||||||
] @attribute
|
] @attribute
|
||||||
|
|
||||||
|
|
@ -206,6 +203,7 @@ field_constant: (IDENTIFIER) @constant
|
||||||
"."
|
"."
|
||||||
","
|
","
|
||||||
":"
|
":"
|
||||||
|
"=>"
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -220,10 +218,18 @@ field_constant: (IDENTIFIER) @constant
|
||||||
")"
|
")"
|
||||||
"{"
|
"{"
|
||||||
"}"
|
"}"
|
||||||
(Payload
|
|
||||||
"|")
|
|
||||||
(PtrPayload
|
|
||||||
"|")
|
|
||||||
(PtrIndexPayload
|
|
||||||
"|")
|
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(Payload
|
||||||
|
"|" @punctuation.bracket)
|
||||||
|
|
||||||
|
(PtrPayload
|
||||||
|
"|" @punctuation.bracket)
|
||||||
|
|
||||||
|
(PtrIndexPayload
|
||||||
|
"|" @punctuation.bracket)
|
||||||
|
|
||||||
|
(ParamType
|
||||||
|
(ErrorUnionExpr
|
||||||
|
(SuffixExpr
|
||||||
|
variable_type_function: (IDENTIFIER) @type)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue