uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.51k stars 106 forks source link

Bug: comment changes multiline string parsing #488

Closed bkDJ closed 4 months ago

bkDJ commented 4 months ago

It looks like the presence/absence of a comment changes how multiline strings with empty lines are parsed in a file.

Case A

Input

$ foo
$
$ bar
◌
0

Output

0

Case B

Input

$ foo
$
$ bar
◌
0 # baz

Output

"foo"
0