mirror of https://github.com/status-im/NimYAML.git
fixes #39
This commit is contained in:
parent
f79774e766
commit
45321cad13
|
@ -915,6 +915,8 @@ proc afterFlowMapSep(c: Context, e: var Event): bool =
|
||||||
c.lex.next()
|
c.lex.next()
|
||||||
c.popLevel()
|
c.popLevel()
|
||||||
return true
|
return true
|
||||||
|
of SeqSep:
|
||||||
|
raise c.generateError("Missing mapping entry between commas (use '?' for an empty mapping entry)")
|
||||||
else: discard
|
else: discard
|
||||||
c.transition(afterFlowMapKey)
|
c.transition(afterFlowMapKey)
|
||||||
c.pushLevel(beforeFlowItem)
|
c.pushLevel(beforeFlowItem)
|
||||||
|
|
Loading…
Reference in New Issue