-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(repo_map): add elixir support (#894)
- Loading branch information
Showing
5 changed files
with
124 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
crates/avante-repo-map/queries/tree-sitter-elixir-defs.scm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
; * modules and protocols | ||
(call | ||
target: (identifier) @ignore | ||
(arguments (alias) @class) | ||
(#match? @ignore "^(defmodule|defprotocol)$")) | ||
|
||
; * functions | ||
(call | ||
target: (identifier) @ignore | ||
(arguments | ||
[ | ||
; zero-arity functions with no parentheses | ||
(identifier) @method | ||
; regular function clause | ||
(call target: (identifier) @method) | ||
; function clause with a guard clause | ||
(binary_operator | ||
left: (call target: (identifier) @method) | ||
operator: "when") | ||
]) | ||
(#match? @ignore "^(def|defdelegate|defguard|defn)$")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters