diff options
author | Araq <rumpf_a@web.de> | 2020-07-06 13:41:42 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2020-07-06 13:41:56 +0200 |
commit | 6f962a4b3628fe746dba66520d725f4d2d1b5c1a (patch) | |
tree | ef438745efae2005aac9ed6e075c6fc70a81f27b /lib | |
parent | 46aacf917f39d02c96175d358e7a76fc875ea070 (diff) | |
download | Nim-6f962a4b3628fe746dba66520d725f4d2d1b5c1a.tar.gz |
fixes #14830
Diffstat (limited to 'lib')
-rw-r--r-- | lib/packages/docutils/highlite.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/packages/docutils/highlite.nim b/lib/packages/docutils/highlite.nim index ca6a3e05e..796c17d7d 100644 --- a/lib/packages/docutils/highlite.nim +++ b/lib/packages/docutils/highlite.nim @@ -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 |