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
This commit is contained in:
Mayank Jikadara authored and GitHub committed 2024-08-02 15:22:01 +02:00
1 parent b88b9dcdd1
commit 61365e034f
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@
[((identifier) @_attribute)
(scoped_identifier (identifier) @_attribute)
])
(#eq? @_attribute "test")
(#match? @_attribute "test")
) @start
.
(attribute_item) *