C/C++ locals: Deduplicate C++ locals contained in C

This commit is contained in:
Stephan Seitz 2020-09-07 20:10:47 +02:00 committed by Thomas Vigouroux
parent 8bc5d1ff3f
commit 985c5def34
2 changed files with 1 additions and 4 deletions

View file

@ -44,4 +44,5 @@
(translation_unit)
(function_definition)
(compound_statement) ; a block in curly braces
(struct_specifier)
] @scope

View file

@ -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))