languages/rust: add rust-script
and cargo
shebangs (#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
This commit is contained in:
parent
69e08d9e91
commit
36ee9ba7d6
1 changed files with 1 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue