Merge pull request #4469 from FedericoCeratto/patch-11
Fix "string literal as key expected" error
This commit is contained in:
commit
58f4b4ce23
1 changed files with 1 additions and 1 deletions
|
|
@ -1127,7 +1127,7 @@ proc parseJson(p: var JsonParser): JsonNode =
|
||||||
discard getTok(p)
|
discard getTok(p)
|
||||||
while p.tok != tkCurlyRi:
|
while p.tok != tkCurlyRi:
|
||||||
if p.tok != tkString:
|
if p.tok != tkString:
|
||||||
raiseParseErr(p, "string literal as key expected")
|
raiseParseErr(p, "string literal as key")
|
||||||
var key = p.a
|
var key = p.a
|
||||||
discard getTok(p)
|
discard getTok(p)
|
||||||
eat(p, tkColon)
|
eat(p, tkColon)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue