Fix for loop parsing
This commit is contained in:
@@ -2552,7 +2552,7 @@ plain_for:
|
|||||||
skip_newlines ();
|
skip_newlines ();
|
||||||
if (!token_is (TOK_SEMICOLON))
|
if (!token_is (TOK_SEMICOLON))
|
||||||
{
|
{
|
||||||
parse_assignment_expression ();
|
parse_expression ();
|
||||||
next_token_must_be (TOK_SEMICOLON);
|
next_token_must_be (TOK_SEMICOLON);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -2570,7 +2570,7 @@ plain_for:
|
|||||||
skip_newlines ();
|
skip_newlines ();
|
||||||
if (!token_is (TOK_CLOSE_PAREN))
|
if (!token_is (TOK_CLOSE_PAREN))
|
||||||
{
|
{
|
||||||
parse_assignment_expression ();
|
parse_expression ();
|
||||||
STACK_DROP (IDX, 1);
|
STACK_DROP (IDX, 1);
|
||||||
next_token_must_be (TOK_CLOSE_PAREN);
|
next_token_must_be (TOK_CLOSE_PAREN);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user