Skip to content

Commit 4d9df58

Browse files
committed
debug
1 parent 9496a04 commit 4d9df58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/pglt_lexer/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ static PATTERN_LEXER: LazyLock<Regex> = LazyLock::new(|| {
6565
#[cfg(windows)]
6666
{
6767
// On Windows, treat \r\n as a single newline token
68-
Regex::new(r"(?P<whitespace> +)|(?P<newline>\r\n|\n)|(?P<tab>\t)").unwrap()
68+
Regex::new(r"(?P<whitespace> +)|(?P<newline>\r\n|\n+)|(?P<tab>\t+)").unwrap()
6969
}
7070
#[cfg(not(windows))]
7171
{
7272
// On other platforms, just check for \n
73-
Regex::new(r"(?P<whitespace> +)|(?P<newline>\n)|(?P<tab>\t)").unwrap()
73+
Regex::new(r"(?P<whitespace> +)|(?P<newline>\n+)|(?P<tab>\t+)").unwrap()
7474
}
7575
});
7676

0 commit comments

Comments
 (0)