mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Added parsing of anchors, aliases, and tags (still no semantics yet).
Fixed a silly bug in the simple key pushing (queues are FIFO!).
This commit is contained in:
@@ -254,12 +254,14 @@ namespace YAML
|
||||
|
||||
// now push
|
||||
m_indents.push(column);
|
||||
Token *pToken = 0;
|
||||
if(sequence)
|
||||
m_tokens.push(new Token(TT_BLOCK_SEQ_START));
|
||||
pToken = new Token(TT_BLOCK_SEQ_START);
|
||||
else
|
||||
m_tokens.push(new Token(TT_BLOCK_MAP_START));
|
||||
pToken = new Token(TT_BLOCK_MAP_START);
|
||||
|
||||
return m_tokens.front();
|
||||
m_tokens.push(pToken);
|
||||
return pToken;
|
||||
}
|
||||
|
||||
// PopIndentTo
|
||||
|
Reference in New Issue
Block a user