Fixed bug with explicit doc start introduced in last commit

This commit is contained in:
Jesse Beder
2009-08-26 16:15:27 +00:00
parent 4b6a0b382c
commit 1b240d3576
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