From b75c2a939d7c79c0e81e311e13beabc52c6402ca Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 30 Dec 2007 12:54:29 +0000 Subject: * parse.y (program, yycompile0): too early to drop lex_lastline in rules. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 70c66b70f7..c1ce8a7462 100644 --- a/parse.y +++ b/parse.y @@ -765,8 +765,6 @@ program : { $$ = $2; parser->result = dispatch1(program, $$); %*/ - lex_p = lex_pbeg = lex_pend = 0; - lex_lastline = lex_nextline = 0; } ; @@ -4685,6 +4683,8 @@ yycompile0(VALUE arg, int tracing) compile_for_eval = 0; lex_strterm = 0; + lex_p = lex_pbeg = lex_pend = 0; + lex_lastline = lex_nextline = 0; if (parser->nerr) { return 0; } -- cgit v1.2.3