Fixed bug in anchors with no content. This involved refactoring the 'implicit sequence' concept (where a map and a sequence start on the same indent, but we read the sequence as more indented since the '-' is visually an indent).

This commit is contained in:
jbeder
2009-08-24 22:56:54 +00:00
parent fc22d55b53
commit c7ed85a4ac
12 changed files with 183 additions and 36 deletions

View File

@@ -35,7 +35,7 @@ namespace YAML
SimpleKey key(INPUT.mark(), m_flowLevel);
// first add a map start, if necessary
key.pMapStart = PushIndentTo(INPUT.column(), false);
key.pMapStart = PushIndentTo(INPUT.column(), IndentMarker::MAP);
if(key.pMapStart)
key.pMapStart->status = TS_UNVERIFIED;