aharpervc commented on code in PR #1949: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1949#discussion_r2220450277
########## 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: I can't recall why I removed that code & tests all pass when I restore it, so it is now restored -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org