diff --git a/ChangeLog b/ChangeLog index fd1212452d..ecad14c838 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 5 07:47:31 2009 Nobuyoshi Nakada + + * parse.y (BEGIN): now local_push are local_pop are necessary in + ripper. + Wed Nov 4 21:39:10 2009 NARUSE, Yui * .document: add some README files to default rdoc's of trunk. diff --git a/parse.y b/parse.y index b8d9b595ee..c10dfe626f 100644 --- a/parse.y +++ b/parse.y @@ -988,10 +988,7 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem if (in_def || in_single) { yyerror("BEGIN in method"); } - /*%%%*/ /* local_push(0); */ - /*% - %*/ } '{' compstmt '}' { @@ -999,11 +996,11 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem ruby_eval_tree_begin = block_append(ruby_eval_tree_begin, $4); /* NEW_PREEXE($4)); */ - /* local_pop(); */ $$ = NEW_BEGIN(0); /*% $$ = dispatch1(BEGIN, $4); %*/ + /* local_pop(); */ } | keyword_END '{' compstmt '}' {