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.

gleam: Detect tests using `describe` API for Startest (#12221)

Marshall Bowerse0cfba43aa05
diff --git a/extensions/gleam/languages/gleam/runnables.scm b/extensions/gleam/languages/gleam/runnables.scm
index b61df1cecad..ca5ad00e595 100644
--- a/extensions/gleam/languages/gleam/runnables.scm
+++ b/extensions/gleam/languages/gleam/runnables.scm
@@ -4,3 +4,17 @@
(function name: (_) @run
(#match? @run ".*_test$"))
) @gleam-test
+
+; `describe` API for Startest.
+(
+ (function_call
+ function: (_) @name
+ (#any-of? @name "describe" "it")
+ arguments: (arguments
+ .
+ (argument
+ value: (string (quoted_content) @run)
+ )
+ )
+ )
+) @gleam-test