summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-13 03:35:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-13 03:35:03 +0000
commitcbc4f761ef22e87e7447bd0ce9c20b22715b87c7 (patch)
tree0f841be20839f04470e6d50a7e41bf07f6e660d5 /parse.y
parent2faf9e4991e8eb9735a3bf3531af78d53f480a5c (diff)
downloadruby-cbc4f761ef22e87e7447bd0ce9c20b22715b87c7.tar.gz
ruby-cbc4f761ef22e87e7447bd0ce9c20b22715b87c7.tar.xz
ruby-cbc4f761ef22e87e7447bd0ce9c20b22715b87c7.zip
* parse.y (expr): rescue clause was ignored.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 10ae9bb8f..3b37a53e6 100644
--- a/parse.y
+++ b/parse.y
@@ -573,6 +573,9 @@ expr : command_call
$$ = NEW_NOT(cond($2));
}
| arg kRESCUE_MOD command_call
+ {
+ $$ = NEW_RESCUE($1, NEW_RESBODY(0,$3,0), 0);
+ }
| arg
;