diff options
Diffstat (limited to 'users')
-rw-r--r-- | users/tazjin/rlox/src/scanner.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/scanner.rs b/users/tazjin/rlox/src/scanner.rs index 6b34288d1082..17c474ba9b2d 100644 --- a/users/tazjin/rlox/src/scanner.rs +++ b/users/tazjin/rlox/src/scanner.rs @@ -119,6 +119,12 @@ impl<'a> Scanner<'a> { } }, + // ignore whitespace + ' ' => {}, + '\r' => {}, + '\t' => {}, + '\n' => self.line += 1, + unexpected => self.errors.push(Error { line: self.line, kind: ErrorKind::UnexpectedChar(unexpected), |