mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
fix(zig): add some missing highlights
This commit is contained in:
parent
5f5077f8f7
commit
49452ab703
1 changed files with 10 additions and 6 deletions
|
|
@ -52,13 +52,13 @@ exception: "!" @keyword.exception
|
||||||
(PtrTypeStart
|
(PtrTypeStart
|
||||||
"c" @variable.builtin)
|
"c" @variable.builtin)
|
||||||
|
|
||||||
((ContainerDeclType
|
(ContainerDecl
|
||||||
[
|
(ContainerDeclType
|
||||||
(ErrorUnionExpr)
|
"enum")
|
||||||
"enum"
|
|
||||||
])
|
|
||||||
(ContainerField
|
(ContainerField
|
||||||
(IDENTIFIER) @constant))
|
(ErrorUnionExpr
|
||||||
|
(SuffixExpr
|
||||||
|
(IDENTIFIER) @constant))))
|
||||||
|
|
||||||
field_constant: (IDENTIFIER) @constant
|
field_constant: (IDENTIFIER) @constant
|
||||||
|
|
||||||
|
|
@ -190,6 +190,7 @@ field_constant: (IDENTIFIER) @constant
|
||||||
(AssignOp)
|
(AssignOp)
|
||||||
(MultiplyOp)
|
(MultiplyOp)
|
||||||
(PrefixOp)
|
(PrefixOp)
|
||||||
|
"="
|
||||||
"*"
|
"*"
|
||||||
"**"
|
"**"
|
||||||
"->"
|
"->"
|
||||||
|
|
@ -229,6 +230,9 @@ field_constant: (IDENTIFIER) @constant
|
||||||
(PtrIndexPayload
|
(PtrIndexPayload
|
||||||
"|" @punctuation.bracket)
|
"|" @punctuation.bracket)
|
||||||
|
|
||||||
|
(PtrListPayload
|
||||||
|
"|" @punctuation.bracket)
|
||||||
|
|
||||||
(ParamType
|
(ParamType
|
||||||
(ErrorUnionExpr
|
(ErrorUnionExpr
|
||||||
(SuffixExpr
|
(SuffixExpr
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue