Add outline support for Elixir

This commit is contained in:
Antonio Scandurra 2022-08-19 15:26:50 +02:00
parent 327aae3bf2
commit 15429efba9

View file

@ -0,0 +1,16 @@
(call
target: (identifier) @context
(arguments (alias) @name)
(#match? @context "^(defmodule|defprotocol)$")) @item
(call
target: (identifier) @context
(arguments
[
(identifier) @name
(call target: (identifier) @name)
(binary_operator
left: (call target: (identifier) @name)
operator: "when")
])
(#match? @context "^(def|defp|defdelegate|defguard|defguardp|defmacro|defmacrop|defn|defnp)$")) @item