Skip to content

Commit

Permalink
languages/rust: add rust-script and cargo shebangs (helix-editor#…
Browse files Browse the repository at this point in the history
…10484)

The former is one of the more popular forks of the original idea:

https://rust-script.org/

The latter is an RFC for folding that functionality into cargo itself,
available on nightly:

https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#script
  • Loading branch information
jlebon authored and Chirikumbrah committed Jun 15, 2024
1 parent 494eff1 commit 4e76e93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ scope = "source.rust"
injection-regex = "rust"
file-types = ["rs"]
roots = ["Cargo.toml", "Cargo.lock"]
shebangs = ["rust-script", "cargo"]
auto-format = true
comment-tokens = ["//", "///", "//!"]
block-comment-tokens = [
Expand Down

0 comments on commit 4e76e93

Please sign in to comment.