Lexer: Added missing rollback
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user