mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
C++ highlights: Highlight variadic parameters
This commit is contained in:
parent
3c0684f7f2
commit
58d52ea62d
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,9 @@
|
||||||
((identifier) @field
|
((identifier) @field
|
||||||
(#match? @field "_$"))
|
(#match? @field "_$"))
|
||||||
|
|
||||||
|
; function(Foo ...foo)
|
||||||
|
(variadic_parameter_declaration) @parameter
|
||||||
|
|
||||||
;(field_expression) @parameter ;; How to highlight this?
|
;(field_expression) @parameter ;; How to highlight this?
|
||||||
(template_function
|
(template_function
|
||||||
name: (identifier) @function)
|
name: (identifier) @function)
|
||||||
|
|
@ -103,3 +106,4 @@
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
"::" @operator
|
"::" @operator
|
||||||
|
"..." @operator
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue