mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 15:27:45 +03:00
windows line feed in when parsing
This commit is contained in:
parent
e12847f9d8
commit
784d855cd9
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user