runnables.scm

 1
 2(
 3    (mod_item
 4        name: (_) @run
 5        (#eq? @run "tests")
 6    ) @rust-mod-test
 7    (#set! tag rust-mod-test)
 8)
 9
10(
11    (
12        (attribute_item (attribute
13            [((identifier) @_attribute)
14                (scoped_identifier (identifier) @_attribute)
15                ])
16            (#eq? @_attribute "test")
17        ) @start
18        .
19        (attribute_item) *
20        .
21        (function_item
22            name: (_) @run
23            body: _
24        ) @end
25    )
26    (#set! tag rust-test)
27)