mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
A3t
- ::findUUIDList now creates sub nodes.
This commit is contained in:
parent
5f6230da3a
commit
81614dda84
1 changed files with 25 additions and 1 deletions
26
src/A3t.cpp
26
src/A3t.cpp
|
@ -1123,12 +1123,36 @@ void A3t::findUUIDList ()
|
|||
|
||||
(*i)->unTag ("?");
|
||||
(*i)->tag ("UUID");
|
||||
(*i)->tag ("EXPANDED");
|
||||
|
||||
Tree* branch = (*i)->addBranch (new Tree ("argSeq"));
|
||||
branch->attribute ("value", "(");
|
||||
branch->tag ("OP");
|
||||
|
||||
std::vector <std::string>::iterator u;
|
||||
for (u = sequence.begin (); u != sequence.end (); ++u)
|
||||
{
|
||||
Tree* branch = (*i)->addBranch (new Tree ("list"));
|
||||
if (u != sequence.begin ())
|
||||
{
|
||||
branch = (*i)->addBranch (new Tree ("argSeq"));
|
||||
branch->attribute ("value", "or");
|
||||
branch->tag ("OP");
|
||||
}
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argSeq"));
|
||||
branch->attribute ("value", "uuid");
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argSeq"));
|
||||
branch->attribute ("value", "=");
|
||||
branch->tag ("OP");
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argSeq"));
|
||||
branch->attribute ("value", *u);
|
||||
}
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argSeq"));
|
||||
branch->attribute ("value", ")");
|
||||
branch->tag ("OP");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue