mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 08:50:11 -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"
|
"allowzero"
|
||||||
"volatile"
|
"volatile"
|
||||||
|
"threadlocal"
|
||||||
|
"inline"
|
||||||
|
"noinline"
|
||||||
|
"noalias"
|
||||||
|
] @type.qualifier
|
||||||
|
|
||||||
|
[
|
||||||
"anytype"
|
"anytype"
|
||||||
"anyframe"
|
"anyframe"
|
||||||
(BuildinTypeExpr)
|
(BuildinTypeExpr)
|
||||||
|
|
@ -129,13 +136,28 @@ field_constant: (IDENTIFIER) @constant
|
||||||
"orelse"
|
"orelse"
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
|
[
|
||||||
|
"packed"
|
||||||
|
"opaque"
|
||||||
|
"comptime"
|
||||||
|
] @storageclass
|
||||||
|
|
||||||
[
|
[
|
||||||
"struct"
|
"struct"
|
||||||
"enum"
|
"enum"
|
||||||
"union"
|
"union"
|
||||||
"error"
|
"error"
|
||||||
"packed"
|
"defer"
|
||||||
"opaque"
|
"errdefer"
|
||||||
|
"async"
|
||||||
|
"nosuspend"
|
||||||
|
"await"
|
||||||
|
"suspend"
|
||||||
|
"resume"
|
||||||
|
"export"
|
||||||
|
"extern"
|
||||||
|
"asm"
|
||||||
|
"callconv"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -148,8 +170,6 @@ field_constant: (IDENTIFIER) @constant
|
||||||
[
|
[
|
||||||
"const"
|
"const"
|
||||||
"var"
|
"var"
|
||||||
"comptime"
|
|
||||||
"threadlocal"
|
|
||||||
"fn"
|
"fn"
|
||||||
] @keyword.function
|
] @keyword.function
|
||||||
|
|
||||||
|
|
@ -165,31 +185,9 @@ field_constant: (IDENTIFIER) @constant
|
||||||
"continue"
|
"continue"
|
||||||
] @keyword.return
|
] @keyword.return
|
||||||
|
|
||||||
; Macro
|
|
||||||
[
|
|
||||||
"defer"
|
|
||||||
"errdefer"
|
|
||||||
"async"
|
|
||||||
"nosuspend"
|
|
||||||
"await"
|
|
||||||
"suspend"
|
|
||||||
"resume"
|
|
||||||
"export"
|
|
||||||
"extern"
|
|
||||||
] @function.macro
|
|
||||||
|
|
||||||
; PrecProc
|
|
||||||
[
|
|
||||||
"inline"
|
|
||||||
"noinline"
|
|
||||||
"asm"
|
|
||||||
"callconv"
|
|
||||||
"noalias"
|
|
||||||
] @attribute
|
|
||||||
|
|
||||||
[
|
[
|
||||||
"linksection"
|
"linksection"
|
||||||
"align"
|
"align"
|
||||||
] @function.builtin
|
] @function.builtin
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue