mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -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
|
||||
(identifier)) @parameter
|
||||
|
||||
(attribute_declaration) @attribute
|
||||
|
||||
(ERROR) @error
|
||||
|
|
|
|||
|
|
@ -124,11 +124,14 @@
|
|||
"using"
|
||||
"virtual"
|
||||
"co_await"
|
||||
"co_yield"
|
||||
"co_return"
|
||||
(auto)
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"co_yield"
|
||||
"co_return"
|
||||
] @keyword.return
|
||||
|
||||
[
|
||||
"new"
|
||||
"delete"
|
||||
|
|
@ -150,9 +153,3 @@
|
|||
] @keyword.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