mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Lexer: Bug in ::isDOM required '.' separators to have endBoundary
This commit is contained in:
parent
99a53edca0
commit
c2f08c8f05
1 changed files with 2 additions and 2 deletions
|
@ -1166,7 +1166,7 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
|
|||
|
||||
// [prefix]annotations.
|
||||
if (isLiteral ("annotations", true, false) &&
|
||||
isLiteral (".", false, true))
|
||||
isLiteral (".", false, false))
|
||||
{
|
||||
std::string extractedToken;
|
||||
Lexer::Type extractedType;
|
||||
|
@ -1187,7 +1187,7 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
|
|||
return true;
|
||||
}
|
||||
else if (isLiteral ("entry", true, false) &&
|
||||
isLiteral (".", false, true) &&
|
||||
isLiteral (".", false, false) &&
|
||||
isOneOf ({"year", "month", "day",
|
||||
"week", "weekday",
|
||||
"julian",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue