Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

elixir: Support describe, test, setup, setup_all in outlines (#19135)

David Baldwinb3c93130ec3b
diff --git a/extensions/elixir/languages/elixir/outline.scm b/extensions/elixir/languages/elixir/outline.scm
index 12a1a25e5f1..2e864136fc5 100644
--- a/extensions/elixir/languages/elixir/outline.scm
+++ b/extensions/elixir/languages/elixir/outline.scm
@@ -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