mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
highlights(c/cpp): react to upstream changes to attributes
This commit is contained in:
parent
1092b6ba3a
commit
37d93ec017
2 changed files with 7 additions and 8 deletions
|
|
@ -170,4 +170,6 @@
|
||||||
(preproc_params
|
(preproc_params
|
||||||
(identifier)) @parameter
|
(identifier)) @parameter
|
||||||
|
|
||||||
|
(attribute_declaration) @attribute
|
||||||
|
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
|
||||||
|
|
@ -124,11 +124,14 @@
|
||||||
"using"
|
"using"
|
||||||
"virtual"
|
"virtual"
|
||||||
"co_await"
|
"co_await"
|
||||||
"co_yield"
|
|
||||||
"co_return"
|
|
||||||
(auto)
|
(auto)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
[
|
||||||
|
"co_yield"
|
||||||
|
"co_return"
|
||||||
|
] @keyword.return
|
||||||
|
|
||||||
[
|
[
|
||||||
"new"
|
"new"
|
||||||
"delete"
|
"delete"
|
||||||
|
|
@ -150,9 +153,3 @@
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
"::" @operator
|
"::" @operator
|
||||||
|
|
||||||
; Annotations (not fully supported by parser)
|
|
||||||
|
|
||||||
((ERROR) @attribute
|
|
||||||
(#vim-match? @attribute "\[?\[.*\]\]?.*$"))
|
|
||||||
(attribute) @attribute
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue