- ::scan should skip nodes tagged with both TERMINATOR and TERMINATED.
This commit is contained in:
Paul Beckingham 2014-08-17 00:43:26 -04:00
parent ccecec6895
commit 24c2c0cbee

View file

@ -288,7 +288,8 @@ void Parser::scan (void (Parser::*callback) (Tree*), Tree* tree /* = NULL */)
else
{
// Parser override operator.
if ((*i)->hasTag ("TERMINATOR"))
if ((*i)->hasTag ("TERMINATOR") ||
(*i)->hasTag ("TERMINATED"))
break;
// Skip known args.