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:
parent
b88b9dcdd1
commit
61365e034f
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
[((identifier) @_attribute)
|
||||
(scoped_identifier (identifier) @_attribute)
|
||||
])
|
||||
(#eq? @_attribute "test")
|
||||
(#match? @_attribute "test")
|
||||
) @start
|
||||
.
|
||||
(attribute_item) *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue