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:
@@ -13,7 +13,7 @@
|
||||
[((identifier) @_attribute)
|
||||
(scoped_identifier (identifier) @_attribute)
|
||||
])
|
||||
(#eq? @_attribute "test")
|
||||
(#match? @_attribute "test")
|
||||
) @start
|
||||
.
|
||||
(attribute_item) *
|
||||
|
||||
Reference in New Issue
Block a user