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 @@ -3670,9 +3670,10 @@ class parser
3670
3670
&& curr ().type () != lexeme::LeftParen // not imediatelly called
3671
3671
&& curr ().type () != lexeme::RightParen // not as a last argument to function
3672
3672
&& curr ().type () != lexeme::Comma // not as first or in-the-middle, function argument
3673
- && curr ().type () != lexeme::RightBracket // as the last index argument
3674
- && curr ().as_string_view () == " is" // as the argument to is
3675
- && curr ().as_string_view () == " as" // as the argument to as
3673
+ && curr ().type () != lexeme::RightBracket // not as the last index argument
3674
+ && curr ().as_string_view () != " is" // not as the argument to is
3675
+ && curr ().as_string_view () != " as" // not as the argument to as
3676
+ && curr ().as_string_view () != " do" // not as `for`'s `next`.
3676
3677
) {
3677
3678
// this is a fix for a short function syntax that should have double semicolon used
3678
3679
// (check comment in expression_statement(bool semicolon_required))
You can’t perform that action at this time.
0 commit comments