mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Added case for parsing a compact key: value pair in a flow sequence with a null key
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user