ruby / prism

Prism Ruby parser
https://ruby.github.io/prism/
MIT License
845 stars 142 forks source link

Parsing `%\r...\r` with CRLF different from parse.y #3230

Open tompng opened 2 days ago

tompng commented 2 days ago
p eval "%\r1\r\n \r"
# parse.y: "1\n "
# prism: "1"

p eval "%\n1\r\n \n"
# parse.y: "1"
# prism: "1\n "

Found while looking at https://github.com/ruby/irb/issues/1037