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:
parent
5443cf1517
commit
aed0c718db
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
4
parse.y
4
parse.y
|
@ -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);
|
||||
%*/
|
||||
|
|
Loading…
Reference in a new issue