mirror of https://github.com/status-im/NimYAML.git
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…
Reference in New Issue