summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 14:36:22 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 14:36:22 +0000
commitcf4b4b4ed9283d87497b661fc1ac5172db6030c4 (patch)
tree3de0c26d6ca8959d5d17fc5bfe29ae864f4027a8 /parse.y
parent9e15823543b0fbfcdd0706fee9352b32fa355fd3 (diff)
downloadruby-cf4b4b4ed9283d87497b661fc1ac5172db6030c4.tar.gz
ruby-cf4b4b4ed9283d87497b661fc1ac5172db6030c4.tar.xz
ruby-cf4b4b4ed9283d87497b661fc1ac5172db6030c4.zip
* eval.c (rb_eval): should handle when in else clause. a patch
from Eric Hodel <drbrain at segment7.net>. [ruby-core:08662] * parse.y (primary): wrap with NODE_CASE. [ruby-core:08663] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 49756f190..d1984259b 100644
--- a/parse.y
+++ b/parse.y
@@ -2605,7 +2605,7 @@ primary : literal
| keyword_case opt_terms case_body keyword_end
{
/*%%%*/
- $$ = $3;
+ $$ = NEW_CASE(0, $3);
/*%
$$ = dispatch2(case, Qnil, $3);
%*/