mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(zig): fix captures
This commit is contained in:
parent
00ee32aca9
commit
1a767376cd
1 changed files with 25 additions and 27 deletions
|
|
@ -93,6 +93,13 @@ field_constant: (IDENTIFIER) @constant
|
|||
[
|
||||
"allowzero"
|
||||
"volatile"
|
||||
"threadlocal"
|
||||
"inline"
|
||||
"noinline"
|
||||
"noalias"
|
||||
] @type.qualifier
|
||||
|
||||
[
|
||||
"anytype"
|
||||
"anyframe"
|
||||
(BuildinTypeExpr)
|
||||
|
|
@ -129,13 +136,28 @@ field_constant: (IDENTIFIER) @constant
|
|||
"orelse"
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
"packed"
|
||||
"opaque"
|
||||
"comptime"
|
||||
] @storageclass
|
||||
|
||||
[
|
||||
"struct"
|
||||
"enum"
|
||||
"union"
|
||||
"error"
|
||||
"packed"
|
||||
"opaque"
|
||||
"defer"
|
||||
"errdefer"
|
||||
"async"
|
||||
"nosuspend"
|
||||
"await"
|
||||
"suspend"
|
||||
"resume"
|
||||
"export"
|
||||
"extern"
|
||||
"asm"
|
||||
"callconv"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
|
|
@ -148,8 +170,6 @@ field_constant: (IDENTIFIER) @constant
|
|||
[
|
||||
"const"
|
||||
"var"
|
||||
"comptime"
|
||||
"threadlocal"
|
||||
"fn"
|
||||
] @keyword.function
|
||||
|
||||
|
|
@ -165,31 +185,9 @@ field_constant: (IDENTIFIER) @constant
|
|||
"continue"
|
||||
] @keyword.return
|
||||
|
||||
; Macro
|
||||
[
|
||||
"defer"
|
||||
"errdefer"
|
||||
"async"
|
||||
"nosuspend"
|
||||
"await"
|
||||
"suspend"
|
||||
"resume"
|
||||
"export"
|
||||
"extern"
|
||||
] @function.macro
|
||||
|
||||
; PrecProc
|
||||
[
|
||||
"inline"
|
||||
"noinline"
|
||||
"asm"
|
||||
"callconv"
|
||||
"noalias"
|
||||
] @attribute
|
||||
|
||||
[
|
||||
"linksection"
|
||||
"align"
|
||||
"align"
|
||||
] @function.builtin
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue