Skip to content

Commit

Permalink
Fix parsing of struct dereferencing.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 17, 2017
1 parent 0772574 commit 71d36da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojobasic_parser.cpp
Expand Up @@ -530,7 +530,7 @@ AstStatement *Parser::parseIdentifierStatement()
// correct AST here until then.

const Token t = currentToken.tokenval;
if ((t != TOKEN_ASSIGN) && (t != TOKEN_COLON) && (t != TOKEN_LPAREN)) {
if ((t != TOKEN_ASSIGN) && (t != TOKEN_COLON) && (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 71d36da

Please sign in to comment.