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({
1584
1584
1585
1585
identifier : _ => / ( r # ) ? [ _ \p{ XID_Start} ] [ _ \p{ XID_Continue} ] * / ,
1586
1586
1587
- shebang : _ => / # ! [ \s ] * [ ^ \[ \s ] + / ,
1587
+ shebang : _ => / # ! [ \s ] * [ ^ \[ ] . + / ,
1588
1588
1589
1589
_reserved_identifier : $ => alias ( choice (
1590
1590
'default' ,
Original file line number Diff line number Diff line change @@ -218,3 +218,13 @@ const ψ_2 : Ψ = 1;
218
218
(identifier)
219
219
(type_identifier)
220
220
(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