Skip to content

Commit a7713ff

Browse files
committed
Only check the parser option
- the dialect's original support informs the parser option, but the parser behavior itself should just check it's own options
1 parent f68491f commit a7713ff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/parser/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4635,11 +4635,7 @@ impl<'a> Parser<'a> {
46354635
return Ok(vec![]);
46364636
}
46374637

4638-
if end_token == Token::SemiColon
4639-
&& self
4640-
.dialect
4641-
.supports_statements_without_semicolon_delimiter()
4642-
{
4638+
if end_token == Token::SemiColon && !self.options.require_semicolon_stmt_delimiter {
46434639
if let Token::Word(ref kw) = self.peek_token().token {
46444640
if kw.keyword != Keyword::NoKeyword {
46454641
return Ok(vec![]);

0 commit comments

Comments
 (0)