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:
parent
e35fe8d11b
commit
c2be819250
1 changed files with 1 additions and 0 deletions
1
parse.y
1
parse.y
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue