hansott commented on code in PR #1629:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/1629#discussion_r1903252759
##########
src/tokenizer.rs:
##########
@@ -1855,22 +1855,31 @@ impl<'a> Tokenizer<'a> {
) -> Result<Option<Token>, TokenizerError> {
let mut s = String::new();
let mut nested = 1;
- let mut last_ch = ' ';
+ let supports_nested_comments = self.dialect.supports_nested_comments();
loop {
match chars.next() {
Some(ch) => {
- if last_ch == '/' && ch == '*' {
+ if ch == '/' && matches!(chars.peek(), Some('*')) &&
supports_nested_comments {
Review Comment:
Makes sense, will do!
--
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]