mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdCustom
- Report filters are now properly lexed, which includes the new typeTag.
This commit is contained in:
parent
aab23692f1
commit
803ef4fee2
1 changed files with 7 additions and 1 deletions
|
@ -95,8 +95,14 @@ int CmdCustom::execute (std::string& output)
|
|||
*/
|
||||
|
||||
// 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;
|
||||
Lexer::word_split (filterArgs, reportFilter);
|
||||
while (lex.token (lexeme, type))
|
||||
filterArgs.push_back (lexeme);
|
||||
|
||||
std::vector <std::string>::reverse_iterator arg;
|
||||
for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)
|
||||
context.parser.captureFirst (*arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue