CmdCustom
- Captured args do not need additional tags.
This commit is contained in:
@@ -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 ();
|
||||||
|
|||||||
Reference in New Issue
Block a user