mirror of https://github.com/status-im/NimYAML.git
Correctly handle `{1}`. Fixes #34
This commit is contained in:
parent
936df70daa
commit
f78c2c5961
|
@ -975,7 +975,9 @@ parserState flowAfterObject:
|
|||
raise c.generateError("Unexpected token (expected ']')")
|
||||
of fplUnknown, fplSinglePairKey, fplDocument:
|
||||
internalError("Unexpected level kind: " & $c.level.kind)
|
||||
result = c.leaveFlowLevel(e)
|
||||
# we need the extra state for possibly emitting an additional empty value.
|
||||
state = leaveFlowMap
|
||||
return false
|
||||
of ltComma:
|
||||
case c.level.kind
|
||||
of fplSequence: discard
|
||||
|
|
Loading…
Reference in New Issue