File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -525,17 +525,8 @@ impl<'a> Parser<'a> {
525525 }
526526
527527 let statement = self.parse_statement()?;
528- expecting_statement_delimiter = match &statement {
529- Statement::If(s) => match &s.if_block.conditional_statements {
530- // the `END` keyword doesn't need to be followed by a statement delimiter, so it shouldn't be expected here
531- ConditionalStatements::BeginEnd { .. } => false,
532- // parsing the statement sequence consumes the statement delimiter, so it shouldn't be expected here
533- ConditionalStatements::Sequence { .. } => false,
534- },
535- // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
536- Statement::Go(_) => false,
537- _ => true,
538- };
528+ // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
529+ expecting_statement_delimiter = !matches!(statement, Statement::Go(_));
539530 stmts.push(statement);
540531 }
541532 Ok(stmts)
You can’t perform that action at this time.
0 commit comments