mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (warn_balanced): use bit-wise operation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ab714c82f0
commit
f030a91d3e
1 changed files with 1 additions and 3 deletions
4
parse.y
4
parse.y
|
@ -6739,9 +6739,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) ((void) \
|
||||
(last_state != EXPR_CLASS && last_state != EXPR_DOT && \
|
||||
last_state != EXPR_FNAME && last_state != EXPR_ENDFN && \
|
||||
last_state != EXPR_ENDARG && \
|
||||
(!(last_state & (EXPR_CLASS|EXPR_DOT|EXPR_FNAME|EXPR_ENDFN|EXPR_ENDARG)) && \
|
||||
space_seen && !ISSPACE(c) && \
|
||||
(ambiguous_operator(op, syn), 0)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue