tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
337 stars 96 forks source link

Allow spaces in shebang lines #223

Closed jwnrt closed 3 months ago

jwnrt commented 3 months ago

Any character is allowed in a shebang line including spaces. This is usually used with /usr/bin/env -S to split the line into arguments.

Most people using shebangs for cargo-script today will probably need to use #!/usr/bin/env cargo +nightly -Zscript so I've added this as a test.

amaanq commented 3 months ago

thanks! I just regenerated with the latest cli version and amended on top of your last commit