Skip to content

Commit 75cb98e

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 0026bb7 commit 75cb98e

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
@@ -4561,11 +4561,7 @@ impl<'a> Parser<'a> {
45614561
return Ok(vec![]);
45624562
}
45634563

4564-
if end_token == Token::SemiColon
4565-
&& self
4566-
.dialect
4567-
.supports_statements_without_semicolon_delimiter()
4568-
{
4564+
if end_token == Token::SemiColon && !self.options.require_semicolon_stmt_delimiter {
45694565
if let Token::Word(ref kw) = self.peek_token().token {
45704566
if kw.keyword != Keyword::NoKeyword {
45714567
return Ok(vec![]);

0 commit comments

Comments
 (0)