Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
rust: Improve runnable detection for test modules (#28024)
Finn Everse5e3e9ac8c0c
diff --git a/crates/languages/src/rust/runnables.scm b/crates/languages/src/rust/runnables.scmindex 43e0b078e25..7c157161442 100644--- a/crates/languages/src/rust/runnables.scm+++ b/crates/languages/src/rust/runnables.scm@@ -1,8 +1,18 @@; Rust mod test(+ (attribute_item (attribute+ (+ (identifier) @_attribute)+ arguments: (+ (token_tree (identifier) @_test)+ (#eq? @_test "test")+ )+ )+ (#eq? @_attribute "cfg")+ )+ .(mod_itemname: (_) @run- (#eq? @run "tests"))(#set! tag rust-mod-test))