feat(repo_map): add elixir support (#894)

This commit is contained in:
Radosław Woźniak
2024-11-24 10:29:30 +01:00
committed by GitHub
parent e60ccd2db4
commit 890fd92594
5 changed files with 124 additions and 16 deletions

View File

@@ -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)$"))