mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
Added tree-sitter-cpp-tags.scm for aider queries.
This commit is contained in:
parent
998dedd2c6
commit
6d1bd4fa01
1 changed files with 15 additions and 0 deletions
15
aider/queries/tree-sitter-cpp-tags.scm
Normal file
15
aider/queries/tree-sitter-cpp-tags.scm
Normal file
|
@ -0,0 +1,15 @@
|
|||
(struct_specifier name: (type_identifier) @name body:(_)) @definition.class
|
||||
|
||||
(declaration type: (union_specifier name: (type_identifier) @name)) @definition.class
|
||||
|
||||
(function_declarator declarator: (identifier) @name) @definition.function
|
||||
|
||||
(function_declarator declarator: (field_identifier) @name) @definition.function
|
||||
|
||||
(function_declarator declarator: (qualified_identifier scope: (namespace_identifier) @scope name: (identifier) @name)) @definition.method
|
||||
|
||||
(type_definition declarator: (type_identifier) @name) @definition.type
|
||||
|
||||
(enum_specifier name: (type_identifier) @name) @definition.type
|
||||
|
||||
(class_specifier name: (type_identifier) @name) @definition.class
|
Loading…
Add table
Add a link
Reference in a new issue