From 61365e034f336d847730e8d5f9cdfc679f62d059 Mon Sep 17 00:00:00 2001 From: Mayank Jikadara Date: Fri, 2 Aug 2024 06:22:01 -0700 Subject: [PATCH] Relax "test" runnable check (#15647) This commit updates the Tree-sitter query to match Rust attributes containing the word "test". The previous query only matched attributes with the exact string "test", which was too restrictive for custom test macros like https://docs.rs/test-log/0.2.10/test_log/# Discussion - https://github.com/zed-industries/zed/discussions/15580 --- crates/languages/src/rust/runnables.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/languages/src/rust/runnables.scm b/crates/languages/src/rust/runnables.scm index 963009abc03e08ab874c53fa02f3edd4d74cbef2..6be4576925f95e619dae9711ce2a60c98f970f04 100644 --- a/crates/languages/src/rust/runnables.scm +++ b/crates/languages/src/rust/runnables.scm @@ -13,7 +13,7 @@ [((identifier) @_attribute) (scoped_identifier (identifier) @_attribute) ]) - (#eq? @_attribute "test") + (#match? @_attribute "test") ) @start . (attribute_item) *