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 (preproc_params
(identifier)) @parameter (identifier)) @parameter
(attribute_declaration) @attribute
(ERROR) @error (ERROR) @error

View file

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