mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
2f40495328
commit
8939436f24
2 changed files with 5 additions and 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
|
||||
|
|
2
parse.y
2
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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue