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 @@ -496,17 +496,8 @@ impl<'a> Parser<'a> {
496496 }
497497
498498 let statement = self.parse_statement()?;
499- expecting_statement_delimiter = match &statement {
500- Statement::If(s) => match &s.if_block.conditional_statements {
501- // the `END` keyword doesn't need to be followed by a statement delimiter, so it shouldn't be expected here
502- ConditionalStatements::BeginEnd { .. } => false,
503- // parsing the statement sequence consumes the statement delimiter, so it shouldn't be expected here
504- ConditionalStatements::Sequence { .. } => false,
505- },
506- // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
507- Statement::Go(_) => false,
508- _ => true,
509- };
499+ // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
500+ expecting_statement_delimiter = !matches!(statement, Statement::Go(_));
510501 stmts.push(statement);
511502 }
512503 Ok(stmts)
You can’t perform that action at this time.
0 commit comments