mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Parser
- Plain words found in filters are now upgraded to search terms.
This commit is contained in:
parent
6ccca32434
commit
6bcb9e4bf3
1 changed files with 15 additions and 1 deletions
|
@ -1362,7 +1362,21 @@ void Parser::findPlainArgs ()
|
|||
(*i)->hasTag ("ORIGINAL") && // TODO Wrong, can come in through alias/filter
|
||||
(*i)->countTags () <= 2)
|
||||
{
|
||||
std::cout << "# plain arg '" << (*i)->attribute ("raw") << "'\n";
|
||||
// This tag also prevents further expanѕion.
|
||||
(*i)->tag ("PATTERN");
|
||||
|
||||
std::string pattern = (*i)->attribute ("raw");
|
||||
|
||||
Tree* branch = (*i)->addBranch (new Tree ("argPat"));
|
||||
branch->attribute ("raw", "description");
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argPat"));
|
||||
branch->attribute ("raw", "~");
|
||||
branch->tag ("OP");
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argPat"));
|
||||
branch->attribute ("raw", pattern);
|
||||
branch->tag ("STRING");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue