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

* parse.y [ripper]: delayed heredocument events should be dispatched after EOF.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2004-09-20 05:51:13 +00:00
parent 144339d4bc
commit 3ad7a18275
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Mon Sep 20 14:50:17 2004 Minero Aoki <aamine@loveruby.net>
* parse.y [ripper]: delayed heredocument events should be
dispatched after EOF.
Mon Sep 20 14:39:42 2004 Minero Aoki <aamine@loveruby.net>
* parse.y [ripper]: adjust lineno and columns for multi-line

View file

@ -6445,11 +6445,10 @@ yylex(p)
t = parser_yylex(parser);
#ifdef RIPPER
parser->current_t = 0;
if (t != 0) {
if (t != 0)
ripper_dispatch_scan_event(parser, t);
if (t == '\n' && !parser->in_heredoc)
ripper_dispatch_delayed_events(parser);
}
if ((t == '\n' && !parser->in_heredoc) || (t == 0))
ripper_dispatch_delayed_events(parser);
#endif
return t;