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 55f6851 commit 2a1d566Copy full SHA for 2a1d566
crates/pg_lexer/src/lib.rs
@@ -60,7 +60,7 @@ pub static WHITESPACE_TOKENS: &[SyntaxKind] = &[
60
];
61
62
static PATTERN_LEXER: LazyLock<Regex> =
63
- LazyLock::new(|| Regex::new(r"(?P<whitespace> +)|(?P<newline>\n+)|(?P<tab>\t+)").unwrap());
+ LazyLock::new(|| Regex::new(r"(?P<whitespace> +)|(?P<newline>\r?\n+)|(?P<tab>\t+)").unwrap());
64
65
fn whitespace_tokens(input: &str) -> VecDeque<Token> {
66
let mut tokens = VecDeque::new();
0 commit comments