Skip to content

Commit

Permalink
Don't test for TOKEN_COLON here, because we just did that above.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 3, 2017
1 parent a31aca3 commit 23620ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojobasic_parser.cpp
Expand Up @@ -573,7 +573,7 @@ AstStatement *Parser::parseIdentifierStatement()
// correct AST here until then.

const Token t = currentToken.tokenval;
if ((t != TOKEN_ASSIGN) && (t != TOKEN_COLON) && (t != TOKEN_LPAREN) && (t != TOKEN_DOT)) {
if ((t != TOKEN_ASSIGN) && (t != TOKEN_LPAREN) && (t != TOKEN_DOT)) {
// sub call or syntax error
AstExpressionList *args = parseFunctionArgs();
return new AstSubCallStatement(position, identifier, args);
Expand Down

0 comments on commit 23620ce

Please sign in to comment.