fixes #14830
This commit is contained in:
parent
46aacf917f
commit
6f962a4b36
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ proc nimNextToken(g: var GeneralTokenizer) =
|
|||
inc(pos)
|
||||
g.kind = gtNone
|
||||
g.length = pos - g.pos
|
||||
if g.kind != gtEof and g.length <= 0:
|
||||
if g.kind != gtEof and g.state != gtNone and g.length <= 0:
|
||||
assert false, "nimNextToken: produced an empty token"
|
||||
g.pos = pos
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue