mirror of https://github.com/status-im/NimYAML.git
Properly parse flow sequences
This commit is contained in:
parent
8c91abc917
commit
573d4788c7
|
@ -110,9 +110,9 @@ template handleObjectStart(k: YamlStreamEventKind, isFlow: bool) {.dirty.} =
|
||||||
level.kind = fplMapKey
|
level.kind = fplMapKey
|
||||||
else:
|
else:
|
||||||
when isFlow:
|
when isFlow:
|
||||||
yield startMapEvent(tag, anchor)
|
yield startSeqEvent(tag, anchor)
|
||||||
else:
|
else:
|
||||||
yield startMapEvent(objectTag, objectAnchor)
|
yield startSeqEvent(objectTag, objectAnchor)
|
||||||
debug("started sequence at " & $indentation)
|
debug("started sequence at " & $indentation)
|
||||||
level.kind = fplSequence
|
level.kind = fplSequence
|
||||||
when isFlow:
|
when isFlow:
|
||||||
|
|
Loading…
Reference in New Issue