diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-30 12:54:29 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-30 12:54:29 +0000 |
| commit | a77570b82d779bd692f67638895fd023d5038c39 (patch) | |
| tree | 0d2ed8ed7a0bba2c38e1aa1ff934252b4d37e9fe /parse.y | |
| parent | 2637bd3a4a65e1e87d8c9ed5feb56e784d70d9fb (diff) | |
| download | ruby-a77570b82d779bd692f67638895fd023d5038c39.tar.gz ruby-a77570b82d779bd692f67638895fd023d5038c39.tar.xz ruby-a77570b82d779bd692f67638895fd023d5038c39.zip | |
* parse.y (program, yycompile0): too early to drop lex_lastline in
rules.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |
