mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
_cursor = marker;
|
||||
|
||||
if (isOneOf ({"context.program",
|
||||
"context.args",
|
||||
|
@ -1135,7 +1137,7 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
|
|||
return true;
|
||||
}
|
||||
|
||||
// [prefix]attribute
|
||||
// [prefix]attribute.
|
||||
if (isOneOf (attributes, true, false))
|
||||
{
|
||||
if (isLiteral (".", false, false))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue