Skip to content

Commit e4be28e

Browse files
jmhainayman-sigma
authored andcommitted
Correctly tokenize nested comments in Databricks, Clickhouse, and ANSI (apache#2044)
1 parent e6c0539 commit e4be28e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/dialect/ansi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl Dialect for AnsiDialect {
3434
true
3535
}
3636

37-
// The SQL standard explictly states that block comments nest.
37+
/// The SQL standard explicitly states that block comments nest.
3838
fn supports_nested_comments(&self) -> bool {
3939
true
4040
}

src/dialect/clickhouse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ impl Dialect for ClickHouseDialect {
9595
true
9696
}
9797

98-
// Supported since 2020.
99-
// See <https://clickhouse.com/docs/whats-new/changelog/2020#backward-incompatible-change-2>
98+
/// Supported since 2020.
99+
/// See <https://clickhouse.com/docs/whats-new/changelog/2020#backward-incompatible-change-2>
100100
fn supports_nested_comments(&self) -> bool {
101101
true
102102
}

src/dialect/databricks.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl Dialect for DatabricksDialect {
8080
true
8181
}
8282

83-
// https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-comment
83+
/// See <https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-comment>
8484
fn supports_nested_comments(&self) -> bool {
8585
true
8686
}
@@ -89,4 +89,5 @@ impl Dialect for DatabricksDialect {
8989
fn supports_string_literal_backslash_escape(&self) -> bool {
9090
true
9191
}
92+
9293
}

0 commit comments

Comments
 (0)