MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / isSeparator

Method isSeparator

src/Lexer.cpp:591–600  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Lexer::Type::separator --

Source from the content-addressed store, hash-verified

589// Lexer::Type::separator
590// --
591bool 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected