mirror of
https://github.com/status-im/NimYAML.git
synced 2025-02-04 15:33:56 +00:00
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
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user