mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 08:50:11 -04:00
C++ locals: Add reference_declarator (analogous to pointer_declarator for C locals)
This commit is contained in:
parent
e4cd88baa4
commit
07cd0b4d8c
1 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,8 @@
|
||||||
(class_specifier) @scope
|
(class_specifier) @scope
|
||||||
(struct_specifier) @scope
|
(struct_specifier) @scope
|
||||||
|
|
||||||
|
(reference_declarator
|
||||||
|
(identifier) @definition.var)
|
||||||
|
|
||||||
(struct_specifier
|
(struct_specifier
|
||||||
name: (type_identifier) @definition.type)
|
name: (type_identifier) @definition.type)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue