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.

go: Support benchmarks named "Benchmark" (#35167)

Robert Fratto2566acc2e746
diff --git a/crates/languages/src/go/runnables.scm b/crates/languages/src/go/runnables.scm
index 49e112b860d..6418cd04d8d 100644
--- a/crates/languages/src/go/runnables.scm
+++ b/crates/languages/src/go/runnables.scm
@@ -69,7 +69,7 @@
(
(
(function_declaration name: (_) @run @_name
- (#match? @_name "^Benchmark.+"))
+ (#match? @_name "^Benchmark.*"))
) @_
(#set! tag go-benchmark)
)