Helper method to consume consecutive digits
(&mut self)
| 407 | |
| 408 | // Helper method to consume consecutive digits |
| 409 | fn consume_digits(&mut self) { |
| 410 | while matches!(self.peek(), Some(c) if c.is_ascii_digit()) { |
| 411 | self.advance(); |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | // Scans identifiers and keywords |
| 416 | fn scan_identifier(&mut self) -> Token<'a> { |