windows line feed in when parsing

This commit is contained in:
Folkert de Vries 2022-08-01 19:24:02 +02:00
parent e12847f9d8
commit 784d855cd9

View File

@ -866,7 +866,7 @@ where
// the next character should not be an identifier character // the next character should not be an identifier character
// to prevent treating `whence` or `iffy` as keywords // to prevent treating `whence` or `iffy` as keywords
match state.bytes().get(width) { match state.bytes().get(width) {
Some(next) if *next == b' ' || *next == b'#' || *next == b'\n' => { Some(next) if *next == b' ' || *next == b'#' || *next == b'\n' || *next == b'\r' => {
state = state.advance(width); state = state.advance(width);
Ok((MadeProgress, (), state)) Ok((MadeProgress, (), state))
} }