Properly parse flow sequences

This commit is contained in:
Felix Krause 2016-01-22 23:53:42 +01:00
parent 8c91abc917
commit 573d4788c7
1 changed files with 2 additions and 2 deletions

View File

@ -110,9 +110,9 @@ template handleObjectStart(k: YamlStreamEventKind, isFlow: bool) {.dirty.} =
level.kind = fplMapKey
else:
when isFlow:
yield startMapEvent(tag, anchor)
yield startSeqEvent(tag, anchor)
else:
yield startMapEvent(objectTag, objectAnchor)
yield startSeqEvent(objectTag, objectAnchor)
debug("started sequence at " & $indentation)
level.kind = fplSequence
when isFlow: