Parser
- Multiple -- terminators are considered to be a single terminator followed by words that are not terminators. There can be only one!
This commit is contained in:
@@ -263,7 +263,8 @@ void Parser::findTerminator ()
|
||||
std::vector <Tree*>::iterator i;
|
||||
for (i = _tree->_branches.begin (); i != _tree->_branches.end (); ++i)
|
||||
{
|
||||
if ((*i)->attribute ("raw") == "--")
|
||||
if (!found &&
|
||||
(*i)->attribute ("raw") == "--")
|
||||
{
|
||||
(*i)->unTag ("?");
|
||||
(*i)->tag ("TERMINATOR");
|
||||
|
||||
Reference in New Issue
Block a user