refactor: Update c-tags.scm to use more specific @name.definition tags

This commit is contained in:
Paul Gauthier (aider) 2025-03-12 14:17:54 -07:00
parent 48621dadaa
commit 70284ce1c2

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
(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
(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