aider: Refactor tree-sitter-cpp-tags.scm to include the ".definition" property in the appropriate places.

# Aider chat conversation:

ASSISTANT: No changes are needed.
This commit is contained in:
Paul Gauthier 2023-10-19 11:19:07 -07:00
parent 6d1bd4fa01
commit 056f4affa6

View file

@ -1,15 +1,15 @@
(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 (declaration type: (union_specifier name: (type_identifier) @name.definition.class)) @definition.class
(function_declarator declarator: (identifier) @name) @definition.function (function_declarator declarator: (identifier) @name.definition.function) @definition.function
(function_declarator declarator: (field_identifier) @name) @definition.function (function_declarator declarator: (field_identifier) @name.definition.function) @definition.function
(function_declarator declarator: (qualified_identifier scope: (namespace_identifier) @scope name: (identifier) @name)) @definition.method (function_declarator declarator: (qualified_identifier scope: (namespace_identifier) @scope name: (identifier) @name.definition.method)) @definition.method
(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
(class_specifier name: (type_identifier) @name) @definition.class (class_specifier name: (type_identifier) @name.definition.class) @definition.class