mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Parser
- ::findBinary removes unnecessarily lexed sub-branches.
This commit is contained in:
parent
0500649992
commit
3f6ad23578
1 changed files with 1 additions and 0 deletions
|
@ -258,6 +258,7 @@ void Parser::findBinary ()
|
||||||
if (_tree->_branches.size () >= 1)
|
if (_tree->_branches.size () >= 1)
|
||||||
{
|
{
|
||||||
_tree->_branches[0]->unTag ("?");
|
_tree->_branches[0]->unTag ("?");
|
||||||
|
_tree->_branches[0]->removeAllBranches ();
|
||||||
_tree->_branches[0]->tag ("BINARY");
|
_tree->_branches[0]->tag ("BINARY");
|
||||||
std::string binary = _tree->_branches[0]->attribute ("raw");
|
std::string binary = _tree->_branches[0]->attribute ("raw");
|
||||||
std::string::size_type slash = binary.rfind ('/');
|
std::string::size_type slash = binary.rfind ('/');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue