diff --git a/.gitignore b/.gitignore index 2f7896d1..2c96eb1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ target/ +Cargo.lock diff --git a/src/parser.rs b/src/parser.rs index 822d1fd7..5293579a 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -463,7 +463,7 @@ impl<'a> Iterator for TokenIterator<'a> { } } } - ' ' | '\n' | '\r' => (), + _x if _x.is_whitespace() => (), _ => return Some(Token::LexErr(LexError::UnexpectedChar)), } }