41 lines · 745 B · Scheme
RawDownload
 (    (mod_item        name: (_) @run        (#eq? @run "tests")    )    (#set! tag rust-mod-test)) (    (        (attribute_item (attribute            [((identifier) @_attribute)                (scoped_identifier (identifier) @_attribute)                ])            (#match? @_attribute "test")        ) @_start        .        (attribute_item) *        .        [(line_comment) (block_comment)] *        .        (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))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t