File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4060,9 +4060,10 @@ class parser
4060
4060
&& curr ().type () != lexeme::LeftParen // not imediatelly called
4061
4061
&& curr ().type () != lexeme::RightParen // not as a last argument to function
4062
4062
&& curr ().type () != lexeme::Comma // not as first or in-the-middle, function argument
4063
- && curr ().type () != lexeme::RightBracket // as the last index argument
4064
- && curr ().as_string_view () == " is" // as the argument to is
4065
- && curr ().as_string_view () == " as" // as the argument to as
4063
+ && curr ().type () != lexeme::RightBracket // not as the last index argument
4064
+ && curr () != " is" // not as the argument to is
4065
+ && curr () != " as" // not as the argument to as
4066
+ && curr () != " do" // not as `for`'s `next`.
4066
4067
) {
4067
4068
// this is a fix for a short function syntax that should have double semicolon used
4068
4069
// (check comment in expression_statement(bool semicolon_required))
You can’t perform that action at this time.
0 commit comments