ruby-changes:50058
From: nobu <ko1@a...>
Date: Sat, 3 Feb 2018 16:22:04 +0900 (JST)
Subject: [ruby-changes:50058] nobu:r62176 (trunk): parse.y: use lex_goto_eol to skip to EOL
nobu 2018-02-03 16:21:58 +0900 (Sat, 03 Feb 2018) New Revision: 62176 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62176 Log: parse.y: use lex_goto_eol to skip to EOL Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 62175) +++ parse.y (revision 62176) @@ -7535,7 +7535,7 @@ parser_yylex(struct parser_params *p) https://github.com/ruby/ruby/blob/trunk/parse.y#L7535 set_file_encoding(p, p->lex.pcur, p->lex.pend); } } - p->lex.pcur = p->lex.pend; + lex_goto_eol(p); dispatch_scan_event(p, tCOMMENT); fallthru = TRUE; /* fall through */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/