File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -508,17 +508,8 @@ impl<'a> Parser<'a> {
508508 }
509509
510510 let statement = self.parse_statement()?;
511- expecting_statement_delimiter = match &statement {
512- Statement::If(s) => match &s.if_block.conditional_statements {
513- // the `END` keyword doesn't need to be followed by a statement delimiter, so it shouldn't be expected here
514- ConditionalStatements::BeginEnd { .. } => false,
515- // parsing the statement sequence consumes the statement delimiter, so it shouldn't be expected here
516- ConditionalStatements::Sequence { .. } => false,
517- },
518- // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
519- Statement::Go(_) => false,
520- _ => true,
521- };
511+ // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
512+ expecting_statement_delimiter = !matches!(statement, Statement::Go(_));
522513 stmts.push(statement);
523514 }
524515 Ok(stmts)
You can’t perform that action at this time.
0 commit comments