Fixes #1219.
This commit is contained in:
parent
188df67677
commit
be616fc432
1 changed files with 2 additions and 1 deletions
|
|
@ -350,7 +350,8 @@ proc next*(c: var TCfgParser): TCfgEvent {.rtl, extern: "npc$1".} =
|
|||
rawGetTok(c, c.tok)
|
||||
if c.tok.kind == tkBracketRi:
|
||||
rawGetTok(c, c.tok)
|
||||
else:
|
||||
else:
|
||||
reset(result)
|
||||
result.kind = cfgError
|
||||
result.msg = errorStr(c, "']' expected, but found: " & c.tok.literal)
|
||||
of tkInvalid, tkEquals, tkColon, tkBracketRi:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue