Skip to content

Commit

Permalink
Support describe, test, setup, setup_all in elixir outline
Browse files Browse the repository at this point in the history
  • Loading branch information
baldwindavid committed Oct 12, 2024
1 parent 9e14fd9 commit 472c25e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions extensions/elixir/languages/elixir/outline.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
(arguments (alias) @name)
(#match? @context "^(defmodule|defprotocol)$")) @item

(call
target: (identifier) @context
(arguments (_) @name)?
(#match? @context "^(setup|setup_all)$")) @item

(call
target: (identifier) @context
(arguments (string) @name)
(#match? @context "^(describe|test)$")) @item

(unary_operator
operator: "@" @name
operand: (call
Expand Down

0 comments on commit 472c25e

Please sign in to comment.