diff --git a/ChangeLog b/ChangeLog index 1308aa40e3..f71f8ae3dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Dec 13 12:33:22 2002 Nobuyoshi Nakada + + * parse.y (expr): rescue clause was ignored. + Thu Dec 12 18:19:14 2002 WATANABE Hirofumi * configure.in (RUBY_PROG_GNU_LD): add $CFLAGS, $CPPFLAGS, $LDFLAGS diff --git a/parse.y b/parse.y index 10ae9bb8f1..3b37a53e68 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 ;