From a1f10f8d39404d9bae42a64efaf505fa12f34c1a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Aug 2024 10:12:52 +0200 Subject: Adding upstream version 25.16.1. Signed-off-by: Daniel Baumann --- sqlglotrs/src/tokenizer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlglotrs/src/tokenizer.rs') diff --git a/sqlglotrs/src/tokenizer.rs b/sqlglotrs/src/tokenizer.rs index ca5c44b..6df3bfb 100644 --- a/sqlglotrs/src/tokenizer.rs +++ b/sqlglotrs/src/tokenizer.rs @@ -375,7 +375,7 @@ impl<'a> TokenizerState<'a> { self.advance(1)?; // Nested comments are allowed by some dialects, e.g. databricks, duckdb, postgres - if !self.is_end && self.chars(comment_start_size) == *comment_start { + if self.settings.nested_comments && !self.is_end && self.chars(comment_start_size) == *comment_start { self.advance(comment_start_size as isize)?; comment_count += 1 } -- cgit v1.2.3