mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
TW-1606: scheduled.any filter
- The Lexer::dom type worked embedded, but not isolated (thanks to Peter Rochen).
This commit is contained in:
parent
71753ef666
commit
36e31811b0
3 changed files with 7 additions and 3 deletions
|
@ -754,14 +754,16 @@ bool Lexer::isPair (std::string& token, Lexer::Type& type)
|
|||
}
|
||||
}
|
||||
|
||||
if (_eos - _cursor > 1 &&
|
||||
if (_eos - _cursor >= 1 &&
|
||||
_text[_cursor] == ':')
|
||||
{
|
||||
_cursor++;
|
||||
|
||||
if (isString (ignoredToken, ignoredType, '\'') ||
|
||||
isString (ignoredToken, ignoredType, '"') ||
|
||||
isWord (ignoredToken, ignoredType))
|
||||
isWord (ignoredToken, ignoredType) ||
|
||||
_eos == _cursor ||
|
||||
_text[_cursor] == ' ')
|
||||
{
|
||||
token = _text.substr (marker, _cursor - marker);
|
||||
type = Lexer::Type::pair;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue