feat(repo_map): add scala support (#788)
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
51
crates/avante-repo-map/queries/tree-sitter-scala-defs.scm
Normal file
51
crates/avante-repo-map/queries/tree-sitter-scala-defs.scm
Normal file
@@ -0,0 +1,51 @@
|
||||
(class_definition
|
||||
name: (identifier) @class)
|
||||
|
||||
(object_definition
|
||||
name: (identifier) @class)
|
||||
|
||||
(trait_definition
|
||||
name: (identifier) @class)
|
||||
|
||||
(simple_enum_case
|
||||
name: (identifier) @enum_item)
|
||||
|
||||
(full_enum_case
|
||||
name: (identifier) @enum_item)
|
||||
|
||||
(template_body
|
||||
(function_definition) @method
|
||||
)
|
||||
|
||||
(template_body
|
||||
(function_declaration) @method
|
||||
)
|
||||
|
||||
(template_body
|
||||
(val_definition) @class_variable
|
||||
)
|
||||
|
||||
(template_body
|
||||
(val_declaration) @class_variable
|
||||
)
|
||||
|
||||
|
||||
(template_body
|
||||
(var_definition) @class_variable
|
||||
)
|
||||
|
||||
(template_body
|
||||
(var_declaration) @class_variable
|
||||
)
|
||||
|
||||
(compilation_unit
|
||||
(function_definition) @function
|
||||
)
|
||||
|
||||
(compilation_unit
|
||||
(val_definition) @variable
|
||||
)
|
||||
|
||||
(compilation_unit
|
||||
(var_definition) @variable
|
||||
)
|
||||
Reference in New Issue
Block a user