Fixed bug with explicit doc start introduced in last commit

This commit is contained in:
jbeder
2009-08-26 16:15:27 +00:00
parent 3c35ab1e42
commit aadc5052bc
4 changed files with 59 additions and 2 deletions

View File

@@ -294,7 +294,7 @@ namespace YAML
}
// PopAllIndents
// . Pops all indentations off the stack,
// . Pops all indentations (except for the base empty one) off the stack,
// and enqueues the proper token each time.
void Scanner::PopAllIndents()
{
@@ -303,8 +303,13 @@ namespace YAML
return;
// now pop away
while(!m_indents.empty())
while(!m_indents.empty()) {
const IndentMarker& indent = m_indents.top();
if(indent.type == IndentMarker::NONE)
break;
PopIndent();
}
}
// PopIndent