зеркало из https://github.com/github/ruby.git
* 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:
Родитель
2f40495328
Коммит
8939436f24
|
@ -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))
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче