Scan a comment extending to the end of the current line.
(&mut self)
| 238 | |
| 239 | // Scan a comment extending to the end of the current line. |
| 240 | fn scan_comment(&mut self) -> Result<LocatedToken<'a>, LocatedError> { |
| 241 | let loc = self.loc(); |
| 242 | let text = self.rest_of_line(); |
| 243 | token(Token::Comment(text), loc) |
| 244 | } |
| 245 | |
| 246 | // Scan a number token which can represent either an integer or floating point number. |
| 247 | // |
no test coverage detected