Opening sequence of a comment '-' => InComment1
(&mut self, c: char)
| 615 | // Opening sequence of a comment |
| 616 | // '-' => InComment1 |
| 617 | fn in_comment_opening(&mut self, c: char) -> Result<Option<Event>, ParserError> { |
| 618 | if c == '-' { |
| 619 | self.st = State::InComment1; |
| 620 | self.level = 0; |
| 621 | Ok(None) |
| 622 | } else { |
| 623 | self.error("Expected 2nd '-' to start comment") |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | // Inside a comment |
| 628 | // '-' '-' => InComment2 |