summaryrefslogtreecommitdiff
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
commita35365d96d7a3a73b4113d9c1b760b9011a9ba30 (patch)
tree0f841be20839f04470e6d50a7e41bf07f6e660d5
parentb60172917f0403a4ac83d4862530509b3935ad7b (diff)
* parse.y (expr): rescue clause was ignored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--parse.y3
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1308aa4..f71f8ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Dec 13 12:33:22 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * parse.y (expr): rescue clause was ignored.
+
Thu Dec 12 18:19:14 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* configure.in (RUBY_PROG_GNU_LD): add $CFLAGS, $CPPFLAGS, $LDFLAGS
diff --git a/parse.y b/parse.y
index 10ae9bb..3b37a53 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
;