Skip to content

Commit

Permalink
skip whitespaces after method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jan 20, 2012
1 parent 88d14cb commit 0740e15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions parse.y
Expand Up @@ -7739,6 +7739,11 @@ parser_yylex(struct parser_params *parser)
}
}

if (lex_state == EXPR_FNAME) {
const char *p = lex_p, *pe = lex_pend;
while (p < pe && (*p == ' ' || *p == '\t')) p++;
if (p < pe && *p != '(') lex_p = p;
}
if ((lex_state == EXPR_BEG && !cmd_state) ||
IS_ARG()) {
if (peek(':') && !(lex_p + 1 < lex_pend && lex_p[1] == ':')) {
Expand Down

0 comments on commit 0740e15

Please sign in to comment.