/////////////////////////////////////////////////////////////////////////// Lexer::Type::separator --
| 589 | // Lexer::Type::separator |
| 590 | // -- |
| 591 | bool Lexer::isSeparator(std::string& token, Lexer::Type& type) { |
| 592 | if (_eos - _cursor >= 2 && _text[_cursor] == '-' && _text[_cursor + 1] == '-') { |
| 593 | _cursor += 2; |
| 594 | type = Lexer::Type::separator; |
| 595 | token = "--"; |
| 596 | return true; |
| 597 | } |
| 598 | |
| 599 | return false; |
| 600 | } |
| 601 | |
| 602 | //////////////////////////////////////////////////////////////////////////////// |
| 603 | // Lexer::Type::url |
nothing calls this directly
no outgoing calls
no test coverage detected