1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: Need to mark the third element of NODE_HEREDOC

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2017-10-27 17:06:06 +00:00
parent e35fe8d11b
commit c2be819250

View file

@ -6640,6 +6640,7 @@ parser_heredoc_identifier(struct parser_params *parser)
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 */