diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-28 00:43:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-28 00:43:27 +0000 |
commit | 8939436f24af0d791114cc6a596b0ddfa0f5f05d (patch) | |
tree | cdcb2d188461132eae633ba3a253d7a6bf38f9e9 | |
parent | 2f40495328954002d747048e77446325e62b8403 (diff) | |
download | ruby-8939436f24af0d791114cc6a596b0ddfa0f5f05d.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Apr 28 09:43:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * parse.y (warn_balanced): do not warn for EXPR_ENDFN. + Tue Apr 27 23:57:04 2010 Yusuke Endoh <mame@tsg.ne.jp> * eval.c (ruby_cleanup): add exception guard around code running @@ -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)) |