mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Parser
- ::findAttribute removes unnecessarily lexed sub-branches.
This commit is contained in:
parent
64df32baff
commit
ad28d34b7e
1 changed files with 2 additions and 0 deletions
|
@ -851,6 +851,7 @@ void Parser::findAttribute ()
|
|||
else if (canonicalize (canonical, "pseudo", name))
|
||||
{
|
||||
(*i)->unTag ("?");
|
||||
(*i)->removeAllBranches ();
|
||||
(*i)->tag ("PSEUDO");
|
||||
(*i)->attribute ("name", canonical);
|
||||
(*i)->attribute ("raw", value);
|
||||
|
@ -859,6 +860,7 @@ void Parser::findAttribute ()
|
|||
else if (canonicalize (canonical, "attribute", name))
|
||||
{
|
||||
(*i)->unTag ("?");
|
||||
(*i)->removeAllBranches ();
|
||||
(*i)->tag ("ATTRIBUTE");
|
||||
(*i)->attribute ("name", canonical);
|
||||
(*i)->attribute ("raw", value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue