mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 10:37:19 +02:00
Parser
- Special handling for "project:<value>" where the partial match operator is used, instead of the usual exact match operator.
This commit is contained in:
parent
e88ccee1e6
commit
9106780260
1 changed files with 6 additions and 1 deletions
|
@ -810,9 +810,14 @@ void Parser::findAttribute ()
|
||||||
branch->attribute ("raw", canonical);
|
branch->attribute ("raw", canonical);
|
||||||
|
|
||||||
branch = (*i)->addBranch (new Tree ("argAtt"));
|
branch = (*i)->addBranch (new Tree ("argAtt"));
|
||||||
branch->attribute ("raw", "==");
|
|
||||||
branch->tag ("OP");
|
branch->tag ("OP");
|
||||||
|
|
||||||
|
// All 'project' attributes are partial matches.
|
||||||
|
if (canonical == "project")
|
||||||
|
branch->attribute ("raw", "=");
|
||||||
|
else
|
||||||
|
branch->attribute ("raw", "==");
|
||||||
|
|
||||||
branch = (*i)->addBranch (new Tree ("argAtt"));
|
branch = (*i)->addBranch (new Tree ("argAtt"));
|
||||||
branch->attribute ("raw", value);
|
branch->attribute ("raw", value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue