Release Notes: - N/A https://github.com/zed-industries/zed/assets/21101490/7a57805c-1d31-48b2-bc2c-3a6f0b730d72
40 lines
702 B
Scheme
40 lines
702 B
Scheme
|
|
(
|
|
(mod_item
|
|
name: (_) @run
|
|
(#eq? @run "tests")
|
|
) @rust-mod-test
|
|
(#set! tag rust-mod-test)
|
|
)
|
|
|
|
(
|
|
(
|
|
(attribute_item (attribute
|
|
[((identifier) @_attribute)
|
|
(scoped_identifier (identifier) @_attribute)
|
|
])
|
|
(#eq? @_attribute "test")
|
|
) @start
|
|
.
|
|
(attribute_item) *
|
|
.
|
|
(function_item
|
|
name: (_) @run
|
|
body: _
|
|
) @end
|
|
)
|
|
(#set! tag rust-test)
|
|
)
|
|
|
|
; Rust main function
|
|
(
|
|
(
|
|
(function_item
|
|
name: (_) @run
|
|
body: _
|
|
) @_rust_main_function_end
|
|
(#eq? @run "main")
|
|
)
|
|
(#set! tag rust-main)
|
|
)
|