File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5364,9 +5364,10 @@ class parser
5364
5364
&& curr ().type () != lexeme::LeftParen // not imediatelly called
5365
5365
&& curr ().type () != lexeme::RightParen // not as a last argument to function
5366
5366
&& curr ().type () != lexeme::Comma // not as first or in-the-middle, function argument
5367
- && curr ().type () != lexeme::RightBracket // as the last index argument
5368
- && curr ().as_string_view () == " is" // as the argument to is
5369
- && curr ().as_string_view () == " as" // as the argument to as
5367
+ && curr ().type () != lexeme::RightBracket // not as the last index argument
5368
+ && curr () != " is" // not as the argument to is
5369
+ && curr () != " as" // not as the argument to as
5370
+ && curr () != " do" // not as `for`'s `next`.
5370
5371
) {
5371
5372
// this is a fix for a short function syntax that should have double semicolon used
5372
5373
// (check comment in expression_statement(bool semicolon_required))
You can’t perform that action at this time.
0 commit comments