File tree 1 file changed +2
-11
lines changed
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -488,17 +488,8 @@ impl<'a> Parser<'a> {
488
488
}
489
489
490
490
let statement = self.parse_statement()?;
491
- expecting_statement_delimiter = match &statement {
492
- Statement::If(s) => match &s.if_block.conditional_statements {
493
- // the `END` keyword doesn't need to be followed by a statement delimiter, so it shouldn't be expected here
494
- ConditionalStatements::BeginEnd { .. } => false,
495
- // parsing the statement sequence consumes the statement delimiter, so it shouldn't be expected here
496
- ConditionalStatements::Sequence { .. } => false,
497
- },
498
- // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
499
- Statement::Go(_) => false,
500
- _ => true,
501
- };
491
+ // Treat batch delimiter as an end of statement, so no additional statement delimiter expected here
492
+ expecting_statement_delimiter = !matches!(statement, Statement::Go(_));
502
493
stmts.push(statement);
503
494
}
504
495
Ok(stmts)
You can’t perform that action at this time.
0 commit comments