Fixed an error in flow map parsing

* { ? foo: bar } emitted an additional, second, empty
   key-value pair
This commit is contained in:
Felix Krause 2017-02-06 20:35:17 +01:00
parent e46ef33a23
commit d8f6ea5e2d
1 changed files with 1 additions and 0 deletions

View File

@ -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 ',')")