ruby-changes:8377
From: matz <ko1@a...>
Date: Fri, 24 Oct 2008 18:08:59 +0900 (JST)
Subject: [ruby-changes:8377] Ruby:r19908 (trunk): * parse.y (lambda): need to adjust lpar_beg for ripper as well.
matz 2008-10-24 18:08:43 +0900 (Fri, 24 Oct 2008) New Revision: 19908 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19908 Log: * parse.y (lambda): need to adjust lpar_beg for ripper as well. [ruby-dev:36702] Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 19907) +++ ChangeLog (revision 19908) @@ -1,3 +1,8 @@ +Fri Oct 24 17:43:26 2008 Yukihiro Matsumoto <matz@r...> + + * parse.y (lambda): need to adjust lpar_beg for ripper as well. + [ruby-dev:36702] + Fri Oct 24 16:13:12 2008 Takeyuki FUJIOKA <xibbar@r...> * lib/cgi/core.rb (read_multipart): change field value as String Index: parse.y =================================================================== --- parse.y (revision 19907) +++ parse.y (revision 19908) @@ -3426,19 +3426,19 @@ lambda : { /*%%%*/ dyna_push(); + /*% $<num>$ = lpar_beg; lpar_beg = ++paren_nest; - /*% %*/ } f_larglist lambda_body { + lpar_beg = $<num>1; /*%%%*/ $$ = $2; $$->nd_body = NEW_SCOPE($2->nd_head, $3); dyna_pop(); - lpar_beg = $<num>1; /*% $$ = dispatch2(lambda, $2, $3); %*/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/