Added flow map, simple key/value

This commit is contained in:
Jesse Beder
2012-05-22 16:36:07 -05:00
parent b8a87c43bc
commit 0e3e6791ff
4 changed files with 115 additions and 2 deletions

View File

@@ -65,9 +65,17 @@ namespace YAML
return;
assert(m_groups.top().type == GroupType::Map);
assert(m_groups.top().flowType == FlowType::Block);
m_groups.top().longKey = true;
}
void EmitterState::ForceFlow()
{
assert(!m_groups.empty());
if(m_groups.empty())
return;
m_groups.top().flowType = FlowType::Flow;
}
void EmitterState::StartedNode()
{