fix(parser,windows): capture carriage return properly
This commit is contained in:
parent
3c97f057cc
commit
703fcb451d
|
@ -52,8 +52,8 @@ pub fn lexer() -> impl Parser<char, Vec<(Token, Span)>, Error = ParseError> {
|
|||
just('|').to(Token::Vbar),
|
||||
just("&&").to(Token::AmperAmper),
|
||||
just('#').to(Token::Hash),
|
||||
just("\n\n").to(Token::EmptyLine),
|
||||
just("\n").to(Token::NewLine),
|
||||
choice((just("\n\n"), just("\r\n\r\n"))).to(Token::EmptyLine),
|
||||
choice((just("\n"), just("\r\n"))).to(Token::NewLine),
|
||||
));
|
||||
|
||||
let grouping = choice((
|
||||
|
|
Loading…
Reference in New Issue