mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Parser
- When ::findPlainArgs promotes a WORD to a PATTERN, it needs to move the FILTER tag down to the child nodes.
This commit is contained in:
parent
37bf45b696
commit
f9aa34cb67
1 changed files with 4 additions and 1 deletions
|
@ -1656,19 +1656,22 @@ void Parser::findPlainArgs ()
|
|||
std::string canonical;
|
||||
if (! canonicalize (canonical, "attribute", raw))
|
||||
{
|
||||
// This tag also prevents further expanѕion.
|
||||
(*i)->unTag ("FILTER");
|
||||
(*i)->tag ("PATTERN");
|
||||
|
||||
Tree* branch = (*i)->addBranch (new Tree ("argPat"));
|
||||
branch->attribute ("raw", "description");
|
||||
branch->tag ("FILTER");
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argPat"));
|
||||
branch->attribute ("raw", "~");
|
||||
branch->tag ("OP");
|
||||
branch->tag ("FILTER");
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argPat"));
|
||||
branch->attribute ("raw", raw);
|
||||
branch->tag ("STRING");
|
||||
branch->tag ("FILTER");
|
||||
action = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue