mirror of
https://github.com/status-im/NimYAML.git
synced 2025-01-26 19:19:24 +00:00
Fixed an error in flow map parsing
* { ? foo: bar } emitted an additional, second, empty key-value pair
This commit is contained in:
parent
e46ef33a23
commit
d8f6ea5e2d
@ -1006,6 +1006,7 @@ parserState flowAfterObject:
|
||||
state = flow
|
||||
c.advance()
|
||||
of ltMapValInd:
|
||||
c.explicitFlowKey = false
|
||||
case c.level.kind
|
||||
of fplSequence, fplMapKey:
|
||||
raise c.generateError("Unexpected token (expected ',')")
|
||||
|
Loading…
x
Reference in New Issue
Block a user