Fix "string literal as key expected" error
Fix "Error: string literal as key expected expected"
This commit is contained in:
parent
5e82ffc8d5
commit
a505fa631d
1 changed files with 1 additions and 1 deletions
|
|
@ -1127,7 +1127,7 @@ proc parseJson(p: var JsonParser): JsonNode =
|
|||
discard getTok(p)
|
||||
while p.tok != tkCurlyRi:
|
||||
if p.tok != tkString:
|
||||
raiseParseErr(p, "string literal as key expected")
|
||||
raiseParseErr(p, "string literal as key")
|
||||
var key = p.a
|
||||
discard getTok(p)
|
||||
eat(p, tkColon)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue