mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
A3t
- ::findPattern now creates sub nodes.
This commit is contained in:
parent
623b1619df
commit
922b80a5be
1 changed files with 12 additions and 2 deletions
14
src/A3t.cpp
14
src/A3t.cpp
|
@ -748,7 +748,7 @@ const std::vector <std::string> A3t::getWords () const
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// /pattern/
|
// /pattern/ --> description ~ pattern
|
||||||
void A3t::findPattern ()
|
void A3t::findPattern ()
|
||||||
{
|
{
|
||||||
std::vector <Tree*>::iterator i;
|
std::vector <Tree*>::iterator i;
|
||||||
|
@ -770,7 +770,17 @@ void A3t::findPattern ()
|
||||||
{
|
{
|
||||||
(*i)->unTag ("?");
|
(*i)->unTag ("?");
|
||||||
(*i)->tag ("PATTERN");
|
(*i)->tag ("PATTERN");
|
||||||
(*i)->attribute ("pattern", pattern);
|
(*i)->tag ("EXPANDED");
|
||||||
|
|
||||||
|
Tree* branch = (*i)->addBranch (new Tree ("argPat"));
|
||||||
|
branch->attribute ("value", "description");
|
||||||
|
|
||||||
|
branch = (*i)->addBranch (new Tree ("argPat"));
|
||||||
|
branch->attribute ("value", "~");
|
||||||
|
branch->tag ("OP");
|
||||||
|
|
||||||
|
branch = (*i)->addBranch (new Tree ("argPat"));
|
||||||
|
branch->attribute ("value", pattern);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue