CmdCustom

- Report filters are now properly lexed, which includes the new typeTag.
This commit is contained in:
Paul Beckingham 2014-09-07 01:20:14 -04:00
parent aab23692f1
commit 803ef4fee2

View file

@ -95,8 +95,14 @@ int CmdCustom::execute (std::string& output)
*/ */
// Prepend the argument list with those from the report filter. // Prepend the argument list with those from the report filter.
std::string lexeme;
Lexer::Type type;
Lexer lex (reportFilter);
lex.ambiguity (false);
std::vector <std::string> filterArgs; std::vector <std::string> filterArgs;
Lexer::word_split (filterArgs, reportFilter); while (lex.token (lexeme, type))
filterArgs.push_back (lexeme);
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); context.parser.captureFirst (*arg);