diff --git a/src/parse.rs b/src/parse.rs index 6c5cb41..66657af 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -104,14 +104,10 @@ fn skip_whitespace(input: Cursor) -> Cursor { } } match byte { - b' ' | 0x09..=0x0c => { + b' ' | 0x09..=0x0d => { s = s.advance(1); continue; } - b'\r' if s.as_bytes().get(1) == Some(&b'\n') => { - s = s.advance(2); - continue; - } b if b <= 0x7f => {} _ => { let ch = s.chars().next().unwrap(); diff --git a/tests/test.rs b/tests/test.rs index 32e4199..1aa3951 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -740,7 +740,7 @@ fn whitespace() { assert_eq!(tokens.into_iter().count(), 0); let lone_carriage_return = " \r "; - lone_carriage_return.parse::().unwrap_err(); + lone_carriage_return.parse::().unwrap(); // FIXME } #[test]