mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 01:27:20 +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)
|
||||
{
|
||||
(*i)->unTag ("?");
|
||||
(*i)->removeAllBranches ();
|
||||
(*i)->tag ("RC");
|
||||
(*i)->attribute ("file", arg.substr (3));
|
||||
}
|
||||
|
@ -380,6 +381,7 @@ void Parser::findOverrides ()
|
|||
if (sep != std::string::npos)
|
||||
{
|
||||
(*i)->unTag ("?");
|
||||
(*i)->removeAllBranches ();
|
||||
(*i)->tag ("CONFIG");
|
||||
(*i)->attribute ("name", arg.substr (3, sep - 3));
|
||||
(*i)->attribute ("value", arg.substr (sep + 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue