mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
C/C++ locals: Deduplicate C++ locals contained in C
This commit is contained in:
parent
8bc5d1ff3f
commit
985c5def34
2 changed files with 1 additions and 4 deletions
|
|
@ -44,4 +44,5 @@
|
|||
(translation_unit)
|
||||
(function_definition)
|
||||
(compound_statement) ; a block in curly braces
|
||||
(struct_specifier)
|
||||
] @scope
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
;; Class / struct defintions
|
||||
(class_specifier) @scope
|
||||
(struct_specifier) @scope
|
||||
|
||||
(reference_declarator
|
||||
(identifier) @definition.var)
|
||||
|
|
@ -15,9 +14,6 @@
|
|||
(variadic_declarator
|
||||
(identifier) @definition.var)
|
||||
|
||||
(struct_specifier
|
||||
name: (type_identifier) @definition.type)
|
||||
|
||||
(struct_specifier
|
||||
name: (scoped_type_identifier
|
||||
name: (type_identifier) @definition.type))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue