mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
(#match? @field "_$"))
|
||||
|
||||
; function(Foo ...foo)
|
||||
(variadic_parameter_declaration) @parameter
|
||||
|
||||
;(field_expression) @parameter ;; How to highlight this?
|
||||
(template_function
|
||||
name: (identifier) @function)
|
||||
|
|
@ -103,3 +106,4 @@
|
|||
] @keyword
|
||||
|
||||
"::" @operator
|
||||
"..." @operator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue