mirror of
https://github.com/HiPhish/rainbow-delimiters.nvim.git
synced 2024-09-16 14:24:05 +02:00
Fix C++ query
The C++ grammar has deviated from the C grammar.
This commit is contained in:
parent
b5bb251e05
commit
f86a3bcaff
1 changed files with 29 additions and 1 deletions
|
@ -1,4 +1,32 @@
|
|||
; inherits: c
|
||||
;;; NOTE: The C and C++ grammar have diverged, so I cannot include the C query.
|
||||
|
||||
(parameter_list
|
||||
"(" @opening
|
||||
")" @closing) @container
|
||||
|
||||
(argument_list
|
||||
"(" @opening
|
||||
")" @closing) @container
|
||||
|
||||
(parenthesized_expression
|
||||
"(" @opening
|
||||
")" @closing) @container
|
||||
|
||||
(compound_statement
|
||||
"{" @opening
|
||||
"}" @closing) @container
|
||||
|
||||
(initializer_list
|
||||
"{" @opening
|
||||
"}" @closing) @container
|
||||
|
||||
(subscript_argument_list
|
||||
"[" @opening
|
||||
"]" @closing) @container
|
||||
|
||||
(field_declaration_list
|
||||
"{" @opening
|
||||
"}" @closing) @container
|
||||
|
||||
(declaration_list
|
||||
"{" @opening
|
||||
|
|
Loading…
Reference in a new issue