Lexer: Added missing rollback

This commit is contained in:
Paul Beckingham 2015-08-05 08:16:17 -04:00
parent 036eb6b010
commit fda8161be8

View file

@ -1084,6 +1084,8 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
type = Lexer::Type::dom; type = Lexer::Type::dom;
return true; return true;
} }
else
_cursor = marker;
if (isOneOf ({"context.program", if (isOneOf ({"context.program",
"context.args", "context.args",
@ -1135,7 +1137,7 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
return true; return true;
} }
// [prefix]attribute // [prefix]attribute.
if (isOneOf (attributes, true, false)) if (isOneOf (attributes, true, false))
{ {
if (isLiteral (".", false, false)) if (isLiteral (".", false, false))