Skip to content

Commit

Permalink
Don't fail on a newline between a SELECT CASE and its first CASE stat…
Browse files Browse the repository at this point in the history
…ement.
  • Loading branch information
icculus committed Nov 17, 2017
1 parent 71d36da commit 61a3855
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mojobasic_parser.cpp
Expand Up @@ -881,6 +881,8 @@ AstSelectStatement *Parser::parseSelect()
AstExpression *test = parseExpression();
needEndOfStatement();

while (want(TOKEN_NEWLINE)) { /* spin */ }

CaseCollector casecollector(position);
bool bSawElse = false;
while (want(TOKEN_CASE)) {
Expand Down

0 comments on commit 61a3855

Please sign in to comment.