File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1584,7 +1584,7 @@ module.exports = grammar({
15841584
15851585 identifier : _ => / ( r # ) ? [ _ \p{ XID_Start} ] [ _ \p{ XID_Continue} ] * / ,
15861586
1587- shebang : _ => / # ! [ \s ] * [ ^ \[ \s ] + / ,
1587+ shebang : _ => / # ! [ \s ] * [ ^ \[ ] . + / ,
15881588
15891589 _reserved_identifier : $ => alias ( choice (
15901590 'default' ,
Original file line number Diff line number Diff line change @@ -218,3 +218,13 @@ const ψ_2 : Ψ = 1;
218218 (identifier)
219219 (type_identifier)
220220 (integer_literal)))
221+
222+ ================================================================================
223+ Shebang line containing spaces
224+ ================================================================================
225+
226+ #!/usr/bin/env -S cargo +nightly -Zscript
227+ --------------------------------------------------------------------------------
228+
229+ (source_file
230+ (shebang))
You can’t perform that action at this time.
0 commit comments