mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
cpp: highlight template method identifier as a method
This commit is contained in:
parent
eb3a09cb28
commit
e643eb5dbd
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@
|
|||
(template_function
|
||||
name: (identifier) @function)
|
||||
|
||||
(template_method
|
||||
name: (field_identifier) @method)
|
||||
|
||||
(((field_expression
|
||||
(field_identifier) @method)) @_parent
|
||||
(#has-parent? @_parent template_method function_declarator call_expression))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue