mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 04:05:04 +00:00
refactor: Update cpp-tags.scm to use more specific name tags
This commit is contained in:
parent
9a88363437
commit
b87a5496e9
1 changed files with 8 additions and 8 deletions
|
@ -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) @local.scope name: (identifier) @name)) @definition.method
|
(function_declarator declarator: (qualified_identifier scope: (namespace_identifier) @local.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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue