mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
Lexer: Added missing rollback
This commit is contained in:
parent
036eb6b010
commit
fda8161be8
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue