Skip to content

Commit

Permalink
fix: correct newline regex patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
gvozdvmozgu authored and benfdking committed Nov 10, 2024
1 parent 7da522c commit aa558e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/lib-dialects/src/ansi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4942,7 +4942,7 @@ fn lexer_matchers() -> Vec<Matcher> {
SyntaxKind::NumericLiteral,
),
Matcher::regex("like_operator", r"!?~~?\*?", SyntaxKind::LikeOperator),
Matcher::regex("newline", r"\r\n|\n", SyntaxKind::Newline),
Matcher::regex("newline", r"(\r\n|\n)", SyntaxKind::Newline),
Matcher::string("casting_operator", "::", SyntaxKind::CastingOperator),
Matcher::string("equals", "=", SyntaxKind::RawComparisonOperator),
Matcher::string("greater_than", ">", SyntaxKind::RawComparisonOperator),
Expand Down

0 comments on commit aa558e0

Please sign in to comment.