diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:12:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:12:52 +0000 |
commit | a1f10f8d39404d9bae42a64efaf505fa12f34c1a (patch) | |
tree | 9eb894268f2a145aa9d42b1726a555ab1359810f /sqlglotrs/src/tokenizer.rs | |
parent | Adding upstream version 25.8.1. (diff) | |
download | sqlglot-aca1c9600b2d3cddfdc5864e5e7cc716b6ade0e3.tar.xz sqlglot-aca1c9600b2d3cddfdc5864e5e7cc716b6ade0e3.zip |
Adding upstream version 25.16.1.upstream/25.16.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglotrs/src/tokenizer.rs')
-rw-r--r-- | sqlglotrs/src/tokenizer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |