aharpervc commented on code in PR #1949:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/1949#discussion_r2220333518
##########
src/parser/mod.rs:
##########
@@ -485,10 +505,10 @@ impl<'a> Parser<'a> {
match self.peek_token().token {
Token::EOF => break,
- // end of statement
- Token::Word(word) => {
- if expecting_statement_delimiter && word.keyword ==
Keyword::END {
- break;
+ // don't expect a semicolon statement delimiter after a
newline when not otherwise required
+ Token::Whitespace(Whitespace::Newline) => {
+ if !self.options.require_semicolon_stmt_delimiter {
+ expecting_statement_delimiter = false;
Review Comment:
This might be a merge mistake. I will investigate
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]