mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdCustom
- Removed Parser details.
This commit is contained in:
parent
bc5cfb2740
commit
6324e3b63a
1 changed files with 0 additions and 9 deletions
|
@ -86,19 +86,10 @@ int CmdCustom::execute (std::string& output)
|
||||||
Lexer::Type type;
|
Lexer::Type type;
|
||||||
Lexer lex (reportFilter);
|
Lexer lex (reportFilter);
|
||||||
lex.ambiguity (false);
|
lex.ambiguity (false);
|
||||||
std::vector <std::string> filterArgs;
|
|
||||||
while (lex.token (lexeme, type))
|
while (lex.token (lexeme, type))
|
||||||
{
|
|
||||||
filterArgs.push_back (lexeme);
|
|
||||||
context.cli.add (lexeme);
|
context.cli.add (lexeme);
|
||||||
}
|
|
||||||
|
|
||||||
std::vector <std::string>::reverse_iterator arg;
|
|
||||||
for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)
|
|
||||||
context.parser.captureFirst (*arg);
|
|
||||||
|
|
||||||
// Reparse after tree change.
|
// Reparse after tree change.
|
||||||
context.parser.parse ();
|
|
||||||
context.cli.analyze ();
|
context.cli.analyze ();
|
||||||
|
|
||||||
// Apply filter.
|
// Apply filter.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue