mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Lexer: Added missing rc.<name> DOM parsing
This commit is contained in:
parent
97e52c8f17
commit
4646a86d4d
1 changed files with 10 additions and 2 deletions
|
@ -1033,6 +1033,16 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
|
|||
{
|
||||
std::size_t marker = _cursor;
|
||||
|
||||
std::string partialToken;
|
||||
Lexer::Type partialType;
|
||||
if (isLiteral ("rc.", false) &&
|
||||
isWord (partialToken, partialType))
|
||||
{
|
||||
token = _text.substr (marker, _cursor - marker);
|
||||
type = Lexer::Type::dom;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (isOneOf ({"context.program",
|
||||
"context.args",
|
||||
"context.width",
|
||||
|
@ -1064,8 +1074,6 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
|
|||
std::size_t checkpoint = _cursor;
|
||||
|
||||
// [prefix]tags.<word>
|
||||
std::string partialToken;
|
||||
Lexer::Type partialType;
|
||||
if (isLiteral ("tags.", false) &&
|
||||
isWord (partialToken, partialType))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue