ruby-changes:48375
From: mame <ko1@a...>
Date: Sat, 28 Oct 2017 02:06:13 +0900 (JST)
Subject: [ruby-changes:48375] mame:r60489 (trunk): parse.y: Need to mark the third element of `NODE_HEREDOC`
mame 2017-10-28 02:06:06 +0900 (Sat, 28 Oct 2017) New Revision: 60489 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60489 Log: parse.y: Need to mark the third element of `NODE_HEREDOC` Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 60488) +++ parse.y (revision 60489) @@ -6640,6 +6640,7 @@ parser_heredoc_identifier(struct parser_ https://github.com/ruby/ruby/blob/trunk/parse.y#L6640 len = lex_p - lex_pbeg; lex_goto_eol(parser); add_mark_object(lit = STR_NEW(tok(), toklen())); + add_mark_object(lex_lastline); lex_strterm = rb_node_newnode(NODE_HEREDOC, lit, /* nd_lit */ len, /* nd_nth */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/