Read a punctuation token.
(&mut self)
| 486 | |
| 487 | /// Read a punctuation token. |
| 488 | fn read_punctuation(&mut self) -> Token<'a> { |
| 489 | let start = self.position; |
| 490 | self.advance(); |
| 491 | Token::new( |
| 492 | &self.content[start..self.position], |
| 493 | TokenKind::Punctuation, |
| 494 | start, |
| 495 | ) |
| 496 | } |
| 497 | |
| 498 | /// Read any other single character. |
| 499 | fn read_other(&mut self) -> Token<'a> { |