зеркало из https://github.com/github/ruby.git
parse.y (parser_yylex): remove wrong warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e22aa95141
Коммит
7bf450d0c3
4
parse.y
4
parse.y
|
@ -8536,10 +8536,6 @@ parser_yylex(struct parser_params *parser)
|
||||||
}
|
}
|
||||||
else if (IS_SPCARG(-1)) {
|
else if (IS_SPCARG(-1)) {
|
||||||
c = tLPAREN_ARG;
|
c = tLPAREN_ARG;
|
||||||
if (lex_state == EXPR_ARG) {
|
|
||||||
rb_warning0("parentheses after method name and a space is interpreted as "
|
|
||||||
"an argument list, not a parenthesed argument");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (IS_lex_state(EXPR_ENDFN) && space_seen && !lambda_beginning_p()) {
|
else if (IS_lex_state(EXPR_ENDFN) && space_seen && !lambda_beginning_p()) {
|
||||||
rb_warning0("parentheses after method name is interpreted as "
|
rb_warning0("parentheses after method name is interpreted as "
|
||||||
|
|
Загрузка…
Ссылка в новой задаче