mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-05 14:07:21 +02:00
Parser
- ::findOverrides removes unnecessarily lexed sub-branches.
This commit is contained in:
parent
8ed1206f41
commit
91263ca28a
1 changed files with 2 additions and 0 deletions
|
@ -368,6 +368,7 @@ void Parser::findOverrides ()
|
||||||
if (arg.find ("rc:") == 0)
|
if (arg.find ("rc:") == 0)
|
||||||
{
|
{
|
||||||
(*i)->unTag ("?");
|
(*i)->unTag ("?");
|
||||||
|
(*i)->removeAllBranches ();
|
||||||
(*i)->tag ("RC");
|
(*i)->tag ("RC");
|
||||||
(*i)->attribute ("file", arg.substr (3));
|
(*i)->attribute ("file", arg.substr (3));
|
||||||
}
|
}
|
||||||
|
@ -380,6 +381,7 @@ void Parser::findOverrides ()
|
||||||
if (sep != std::string::npos)
|
if (sep != std::string::npos)
|
||||||
{
|
{
|
||||||
(*i)->unTag ("?");
|
(*i)->unTag ("?");
|
||||||
|
(*i)->removeAllBranches ();
|
||||||
(*i)->tag ("CONFIG");
|
(*i)->tag ("CONFIG");
|
||||||
(*i)->attribute ("name", arg.substr (3, sep - 3));
|
(*i)->attribute ("name", arg.substr (3, sep - 3));
|
||||||
(*i)->attribute ("value", arg.substr (sep + 1));
|
(*i)->attribute ("value", arg.substr (sep + 1));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue