Skip to content

Commit 5ba0075

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 d7325d9 commit 5ba0075

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
@@ -4990,11 +4990,7 @@ impl<'a> Parser<'a> {
49904990
return Ok(vec![]);
49914991
}
49924992

4993-
if end_token == Token::SemiColon
4994-
&& self
4995-
.dialect
4996-
.supports_statements_without_semicolon_delimiter()
4997-
{
4993+
if end_token == Token::SemiColon && !self.options.require_semicolon_stmt_delimiter {
49984994
if let Token::Word(ref kw) = self.peek_token().token {
49994995
if kw.keyword != Keyword::NoKeyword {
50004996
return Ok(vec![]);

0 commit comments

Comments
 (0)