• KOBAYASHI Shuji's avatar
    Fix here document with EOF · 455930fb
    KOBAYASHI Shuji authored
    #### Before this patch:
    
      ```
      $ bin/mruby -e 'p <<EOS
    1
    EOS'
      -e:4:0: can't find heredoc delimiter "EOS" anywhere before EOF
      -e:4:0: syntax error, unexpected $end, expecting tHEREDOC_END or tHD_STRING_PART or tHD_STRING_MID
      ```
    
    #### After this patch (same as Ruby):
    
      ```
      $ bin/mruby -e 'p <<EOS
    1
    EOS'
      "1\n"
      ```
    455930fb
parse.y 177 KB