1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (lambda): need to adjust lpar_beg for ripper as well.

[ruby-dev:36702]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-10-24 09:08:43 +00:00
parent 5443cf1517
commit aed0c718db
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Fri Oct 24 17:43:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* 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@ruby-lang.org>
* lib/cgi/core.rb (read_multipart): change field value as String

View file

@ -3426,19 +3426,19 @@ bvar : tIDENTIFIER
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);
%*/