mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI
- Added debug.parser=3 support to ::desugarAttributeModifiers.
This commit is contained in:
parent
73e767ec3e
commit
3b88106be8
1 changed files with 11 additions and 2 deletions
13
src/CLI.cpp
13
src/CLI.cpp
|
@ -905,6 +905,7 @@ void CLI::desugarAttributes ()
|
||||||
// <name>.[~]<mod>[:=]['"]<value>['"] --> name <op> value
|
// <name>.[~]<mod>[:=]['"]<value>['"] --> name <op> value
|
||||||
void CLI::desugarAttributeModifiers ()
|
void CLI::desugarAttributeModifiers ()
|
||||||
{
|
{
|
||||||
|
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)
|
||||||
|
@ -1066,14 +1067,22 @@ void CLI::desugarAttributeModifiers ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!found)
|
if (found)
|
||||||
|
changes = true;
|
||||||
|
else
|
||||||
reconstructed.push_back (*a);
|
reconstructed.push_back (*a);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
reconstructed.push_back (*a);
|
reconstructed.push_back (*a);
|
||||||
}
|
}
|
||||||
|
|
||||||
_args = reconstructed;
|
if (changes)
|
||||||
|
{
|
||||||
|
_args = reconstructed;
|
||||||
|
|
||||||
|
if (context.config.getInteger ("debug.parser") >= 3)
|
||||||
|
context.debug (context.cli.dump ("CLI::analyze desugarAttributeModifiers"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue