mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-07 13:48:33 +02:00
Parser
- Modified ':' to perform partial matches, which means dates now match on same day.
This commit is contained in:
parent
47cfe515e6
commit
5c485f6c53
3 changed files with 9 additions and 7 deletions
|
@ -978,15 +978,11 @@ void Parser::findAttribute ()
|
|||
Tree* branch = (*i)->addBranch (new Tree ("argAtt"));
|
||||
branch->attribute ("raw", canonical);
|
||||
|
||||
// The 'name:value' maps to 'name = value', the partial match
|
||||
// operator.
|
||||
branch = (*i)->addBranch (new Tree ("argAtt"));
|
||||
branch->tag ("OP");
|
||||
|
||||
// All 'project' attributes are partial matches.
|
||||
if (canonical == "project" ||
|
||||
canonical == "uuid")
|
||||
branch->attribute ("raw", "=");
|
||||
else
|
||||
branch->attribute ("raw", "==");
|
||||
branch->attribute ("raw", "=");
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argAtt"));
|
||||
branch->attribute ("raw", value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue