Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
rust: reduce false positives in runnables query (#11845)
Piotr Osiewicz266643440c94
diff --git a/crates/languages/src/rust/runnables.scm b/crates/languages/src/rust/runnables.scmindex 400d1aa8443..a0409623b87 100644--- a/crates/languages/src/rust/runnables.scm+++ b/crates/languages/src/rust/runnables.scm@@ -1,6 +1,11 @@(- (attribute_item (attribute) @attribute- (#match? @attribute ".*test"))+ (attribute_item (attribute+ [((identifier) @_attribute)+ (scoped_identifier (identifier) @_attribute)+ ])+ (#eq? @_attribute "test"))+ .+ (attribute_item) *.(function_itemname: (_) @run)