feat(repo-map): add swift, java and php support (#1446)
This commit is contained in:
20
crates/avante-repo-map/queries/tree-sitter-php-defs.scm
Normal file
20
crates/avante-repo-map/queries/tree-sitter-php-defs.scm
Normal file
@@ -0,0 +1,20 @@
|
||||
;; Capture exported functions, arrow functions, variables, classes, and method definitions
|
||||
|
||||
(class_declaration) @class
|
||||
(interface_declaration) @class
|
||||
|
||||
(function_definition) @function
|
||||
|
||||
(assignment_expression) @assignment
|
||||
|
||||
(const_declaration
|
||||
(const_element
|
||||
(name) @variable))
|
||||
|
||||
(_
|
||||
body: (declaration_list
|
||||
(property_declaration) @class_variable))
|
||||
|
||||
(_
|
||||
body: (declaration_list
|
||||
(method_declaration) @method))
|
||||
Reference in New Issue
Block a user