parser icon indicating copy to clipboard operation
parser copied to clipboard

Nested heredocs

Open kddnewton opened this issue 1 year ago • 0 comments

[<<A,
#{<<B}
b
B
a
A
0]

This is giving:

s(:array,
  s(:dstr,
    s(:begin,
      s(:str, "b\n")),
    s(:str, "\n"),
    s(:str, "b\n"),
    s(:str, "B\n"),
    s(:str, "a\n")),
  s(:int, 0))

when I think it should be giving:

s(:array,
  s(:dstr,
    s(:begin,
      s(:str, "b\n")),
    s(:str, "\n"),
    s(:str, "a\n")),
  s(:int, 0))

kddnewton avatar Jun 07 '24 18:06 kddnewton