mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI
- Added debug.parser=3 support to ::decomposeModAttributes.
This commit is contained in:
parent
8abc2967f7
commit
caa4e0d6b9
1 changed files with 8 additions and 0 deletions
|
@ -1599,6 +1599,7 @@ void CLI::insertJunctions ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void CLI::decomposeModAttributes ()
|
||||
{
|
||||
bool changes = false;
|
||||
std::vector <A>::iterator a;
|
||||
for (a = _args.begin (); a != _args.end (); ++a)
|
||||
{
|
||||
|
@ -1631,6 +1632,7 @@ void CLI::decomposeModAttributes ()
|
|||
a->attribute ("value", value);
|
||||
a->tag ("UDA");
|
||||
a->tag ("MODIFIABLE");
|
||||
changes = true;
|
||||
}
|
||||
|
||||
else if (canonicalize (canonical, "attribute", name))
|
||||
|
@ -1646,12 +1648,18 @@ void CLI::decomposeModAttributes ()
|
|||
{
|
||||
a->tag ("MODIFIABLE");
|
||||
}
|
||||
|
||||
changes = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (changes &&
|
||||
context.config.getInteger ("debug.parser") >= 3)
|
||||
context.debug (context.cli.dump ("CLI::analyze decomposeModAttributes"));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue