From 8939436f24af0d791114cc6a596b0ddfa0f5f05d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 28 Apr 2010 00:43:27 +0000 Subject: [PATCH] * parse.y (warn_balanced): do not warn for EXPR_ENDFN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ parse.y | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 051ef54d39..c478670893 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 28 09:43:24 2010 Nobuyoshi Nakada + + * parse.y (warn_balanced): do not warn for EXPR_ENDFN. + Tue Apr 27 23:57:04 2010 Yusuke Endoh * eval.c (ruby_cleanup): add exception guard around code running diff --git a/parse.y b/parse.y index 2a05211d49..7c53b56d64 100644 --- a/parse.y +++ b/parse.y @@ -6488,7 +6488,7 @@ parser_prepare(struct parser_params *parser) #define ambiguous_operator(op, syn) dispatch2(operator_ambiguous, ripper_intern(op), rb_str_new_cstr(syn)) #endif #define warn_balanced(op, syn) \ - (last_state != EXPR_DOT && last_state != EXPR_FNAME && \ + (last_state != EXPR_DOT && last_state != EXPR_FNAME && last_state != EXPR_ENDFN && \ space_seen && !ISSPACE(c) && \ (ambiguous_operator(op, syn), 0))