mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
C++ highlights: highlight all kinds of optional parameters
declarator can be a identifier, a reference or a pointer
This commit is contained in:
parent
06452845d6
commit
1a62b97ccd
1 changed files with 2 additions and 2 deletions
|
|
@ -14,10 +14,10 @@
|
||||||
; function(Foo ...foo)
|
; function(Foo ...foo)
|
||||||
(variadic_parameter_declaration
|
(variadic_parameter_declaration
|
||||||
declarator: (variadic_declarator
|
declarator: (variadic_declarator
|
||||||
(identifier) @parameter))
|
(_) @parameter))
|
||||||
; int foo = 0
|
; int foo = 0
|
||||||
(optional_parameter_declaration
|
(optional_parameter_declaration
|
||||||
declarator: (identifier) @parameter)
|
declarator: (_) @parameter)
|
||||||
|
|
||||||
;(field_expression) @parameter ;; How to highlight this?
|
;(field_expression) @parameter ;; How to highlight this?
|
||||||
(template_function
|
(template_function
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue