TW-1606: scheduled.any filter

- The Lexer::dom type worked embedded, but not isolated (thanks to Peter Rochen).
This commit is contained in:
Paul Beckingham 2015-04-29 18:53:13 -04:00
parent 71753ef666
commit 36e31811b0
3 changed files with 7 additions and 3 deletions

View file

@ -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;