Skip to content

Commit cefa1ee

Browse files
committed
formatting
1 parent c6c970d commit cefa1ee

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

crates/lib-dialects/src/ansi.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,12 @@ pub fn raw_dialect() -> Dialect {
356356
let pattern = reserved_keywords.iter().join("|");
357357
let anti_template = format!("^({pattern})$");
358358

359-
RegexParser::new("[\\p{L}\\p{N}_]*[\\p{L}][\\p{L}\\p{N}_]*", SyntaxKind::NakedIdentifier)
360-
.anti_template(&anti_template)
361-
.to_matchable()
359+
RegexParser::new(
360+
"[\\p{L}\\p{N}_]*[\\p{L}][\\p{L}\\p{N}_]*",
361+
SyntaxKind::NakedIdentifier,
362+
)
363+
.anti_template(&anti_template)
364+
.to_matchable()
362365
})
363366
.into(),
364367
),

crates/lib-dialects/src/postgres.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,15 +412,21 @@ pub fn raw_dialect() -> Dialect {
412412
),
413413
(
414414
"ParameterNameSegment".into(),
415-
RegexParser::new(r#"[\p{L}_][\p{L}\p{N}_$]*|\"[^\"]*\""#, SyntaxKind::Parameter)
416-
.to_matchable()
417-
.into(),
415+
RegexParser::new(
416+
r#"[\p{L}_][\p{L}\p{N}_$]*|\"[^\"]*\""#,
417+
SyntaxKind::Parameter,
418+
)
419+
.to_matchable()
420+
.into(),
418421
),
419422
(
420423
"FunctionNameIdentifierSegment".into(),
421-
RegexParser::new(r"[\p{L}_][\p{L}\p{N}_$]*", SyntaxKind::FunctionNameIdentifier)
422-
.to_matchable()
423-
.into(),
424+
RegexParser::new(
425+
r"[\p{L}_][\p{L}\p{N}_$]*",
426+
SyntaxKind::FunctionNameIdentifier,
427+
)
428+
.to_matchable()
429+
.into(),
424430
),
425431
(
426432
"FunctionContentsExpressionGrammar".into(),

0 commit comments

Comments
 (0)