Skip to content

Commit 7b923b3

Browse files
committed
Support windows-style newlines in parser
1 parent 2c23507 commit 7b923b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/parser/src/lexer/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub enum TokenKind {
3434
#[error]
3535
Error,
3636

37-
#[regex(r"\n[ \t]*")]
37+
#[regex(r"[\r]?\n[ \t]*")]
3838
Newline,
3939

4040
/// Virtual tokens emitted by the parser

0 commit comments

Comments
 (0)