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 2024-08-02 06:22:01 -07:00 committed by GitHub
parent b88b9dcdd1
commit 61365e034f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@
[((identifier) @_attribute)
(scoped_identifier (identifier) @_attribute)
])
(#eq? @_attribute "test")
(#match? @_attribute "test")
) @start
.
(attribute_item) *