JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.3k stars 54 forks source link

Heredoc woes #83

Open JoshCheek opened 7 years ago

JoshCheek commented 7 years ago

I was expecting the bottom annotation to be "123\n"

<<-HERE # => "123\n"
1#{1+1}3
HERE
# => 2
JoshCheek commented 7 years ago

Push this to next major release b/c otherwise I wind up parsing it about 1 million times. What I want to do is change WrapExpressions to hand the AST to the callback, but that would break the interface. Basically, it needs an additional check right here to check whether that line is within a heredoc.