From aed0c718db2d50e7984f8ef4bd105828a7d3a939 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 24 Oct 2008 09:08:43 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ parse.y | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 63461f64a5..ede4591c48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Oct 24 17:43:26 2008 Yukihiro Matsumoto + + * parse.y (lambda): need to adjust lpar_beg for ripper as well. + [ruby-dev:36702] + Fri Oct 24 16:13:12 2008 Takeyuki FUJIOKA * lib/cgi/core.rb (read_multipart): change field value as String diff --git a/parse.y b/parse.y index 3f85c07b09..d9f19295ba 100644 --- a/parse.y +++ b/parse.y @@ -3426,19 +3426,19 @@ bvar : tIDENTIFIER lambda : { /*%%%*/ dyna_push(); + /*% $$ = lpar_beg; lpar_beg = ++paren_nest; - /*% %*/ } f_larglist lambda_body { + lpar_beg = $1; /*%%%*/ $$ = $2; $$->nd_body = NEW_SCOPE($2->nd_head, $3); dyna_pop(); - lpar_beg = $1; /*% $$ = dispatch2(lambda, $2, $3); %*/