mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
windows line feed in when parsing
This commit is contained in:
parent
e12847f9d8
commit
784d855cd9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue