highlights(c/cpp): react to upstream changes to attributes

This commit is contained in:
Stephan Seitz 2021-09-16 18:19:11 +02:00 committed by Stephan Seitz
parent 1092b6ba3a
commit 37d93ec017
2 changed files with 7 additions and 8 deletions

View file

@ -170,4 +170,6 @@
(preproc_params
(identifier)) @parameter
(attribute_declaration) @attribute
(ERROR) @error

View file

@ -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