mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 11:27:19 +02:00
CLI
- Added debug.parser=3 support to ::desugarTags.
This commit is contained in:
parent
ea8663652f
commit
255d7b2126
1 changed files with 10 additions and 1 deletions
|
@ -744,6 +744,7 @@ bool CLI::exactMatch (
|
||||||
// -tag --> tags _notag_ tag
|
// -tag --> tags _notag_ tag
|
||||||
void CLI::desugarTags ()
|
void CLI::desugarTags ()
|
||||||
{
|
{
|
||||||
|
bool changes = false;
|
||||||
std::vector <A> reconstructed;
|
std::vector <A> reconstructed;
|
||||||
std::vector <A>::iterator a;
|
std::vector <A>::iterator a;
|
||||||
for (a = _args.begin (); a != _args.end (); ++a)
|
for (a = _args.begin (); a != _args.end (); ++a)
|
||||||
|
@ -773,6 +774,8 @@ void CLI::desugarTags ()
|
||||||
right.tag ("LITERAL");
|
right.tag ("LITERAL");
|
||||||
right.tag ("FILTER");
|
right.tag ("FILTER");
|
||||||
reconstructed.push_back (right);
|
reconstructed.push_back (right);
|
||||||
|
|
||||||
|
changes = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
reconstructed.push_back (*a);
|
reconstructed.push_back (*a);
|
||||||
|
@ -781,7 +784,13 @@ void CLI::desugarTags ()
|
||||||
reconstructed.push_back (*a);
|
reconstructed.push_back (*a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (changes)
|
||||||
|
{
|
||||||
_args = reconstructed;
|
_args = reconstructed;
|
||||||
|
|
||||||
|
if (context.config.getInteger ("debug.parser") >= 3)
|
||||||
|
context.debug (context.cli.dump ("CLI::analyze desugarTags"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue