mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 10:37:19 +02:00
CmdCustom
- Captured args do not need additional tags.
This commit is contained in:
parent
904c42fcbe
commit
e5e0ac8ba3
1 changed files with 1 additions and 5 deletions
|
@ -88,11 +88,7 @@ int CmdCustom::execute (std::string& output)
|
||||||
Lexer::split (filterArgs, reportFilter);
|
Lexer::split (filterArgs, reportFilter);
|
||||||
std::vector <std::string>::reverse_iterator arg;
|
std::vector <std::string>::reverse_iterator arg;
|
||||||
for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)
|
for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)
|
||||||
{
|
context.parser.captureFirst (*arg);
|
||||||
Tree* t = context.parser.captureFirst (*arg);
|
|
||||||
t->tag ("CUSTOM");
|
|
||||||
t->tag ("FILTER");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reparse after tree change.
|
// Reparse after tree change.
|
||||||
context.parser.parse ();
|
context.parser.parse ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue