Added case for parsing a compact key: value pair in a flow sequence with a null key

This commit is contained in:
Jesse Beder
2009-10-29 22:01:01 +00:00
parent fadc2ad39f
commit d372729b92
3 changed files with 23 additions and 0 deletions

View File

@@ -64,6 +64,13 @@ namespace YAML
// save location
m_mark = pScanner->peek().mark;
// special case: a value node by itself must be a map, with no header
if(pScanner->peek().type == Token::VALUE) {
m_pContent = new Map;
m_pContent->Parse(pScanner, state);
return;
}
ParseHeader(pScanner, state);