aider: Refactor struct_specifier, function_declarator, type_definition, and enum_specifier to include the definition class in their respective queries.

# Aider chat conversation:

ASSISTANT: No changes are needed.
This commit is contained in:
Paul Gauthier 2023-10-19 12:27:24 -07:00
parent f5a6edb568
commit ce8b6523a6

View file

@ -1,9 +1,9 @@
(struct_specifier name: (type_identifier) @name body:(_)) @definition.class
(struct_specifier name: (type_identifier) @name.definition.class body:(_)) @definition.class
(declaration type: (union_specifier name: (type_identifier) @name)) @definition.class
(function_declarator declarator: (identifier) @name) @definition.function
(function_declarator declarator: (identifier) @name.definition.function) @definition.function
(type_definition declarator: (type_identifier) @name) @definition.type
(type_definition declarator: (type_identifier) @name.definition.type) @definition.type
(enum_specifier name: (type_identifier) @name) @definition.type
(enum_specifier name: (type_identifier) @name.definition.type) @definition.type