Fixed bug with omitted keys/values in a flow map

This commit is contained in:
Jesse Beder
2009-09-02 21:39:57 +00:00
parent 0d41a7de7c
commit 873ad336f8
6 changed files with 49 additions and 3 deletions

View File

@@ -181,6 +181,12 @@ namespace YAML
throw ParserException(INPUT.mark(), ErrorMsg::MAP_VALUE);
PushIndentTo(INPUT.column(), IndentMarker::MAP);
} else {
// we might have an empty key, so we should add it (as a simple key)
if(m_simpleKeyAllowed) {
InsertSimpleKey();
VerifySimpleKey();
}
}
// can only put a simple key here if we're in block context