We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9496a04 commit 4d9df58Copy full SHA for 4d9df58
crates/pglt_lexer/src/lib.rs
@@ -65,12 +65,12 @@ static PATTERN_LEXER: LazyLock<Regex> = LazyLock::new(|| {
65
#[cfg(windows)]
66
{
67
// 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()
+ Regex::new(r"(?P<whitespace> +)|(?P<newline>\r\n|\n+)|(?P<tab>\t+)").unwrap()
69
}
70
#[cfg(not(windows))]
71
72
// On other platforms, just check for \n
73
- Regex::new(r"(?P<whitespace> +)|(?P<newline>\n)|(?P<tab>\t)").unwrap()
+ Regex::new(r"(?P<whitespace> +)|(?P<newline>\n+)|(?P<tab>\t+)").unwrap()
74
75
});
76
0 commit comments