Add runnable for rust main function (#13087)
Release Notes: - N/A https://github.com/zed-industries/zed/assets/21101490/7a57805c-1d31-48b2-bc2c-3a6f0b730d72
This commit is contained in:
parent
5dc26c261d
commit
3701e190ce
2 changed files with 157 additions and 11 deletions
|
@ -25,3 +25,15 @@
|
|||
)
|
||||
(#set! tag rust-test)
|
||||
)
|
||||
|
||||
; Rust main function
|
||||
(
|
||||
(
|
||||
(function_item
|
||||
name: (_) @run
|
||||
body: _
|
||||
) @_rust_main_function_end
|
||||
(#eq? @run "main")
|
||||
)
|
||||
(#set! tag rust-main)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue