summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2020-07-06 13:41:42 +0200
committerAraq <rumpf_a@web.de>2020-07-06 13:41:56 +0200
commit6f962a4b3628fe746dba66520d725f4d2d1b5c1a (patch)
treeef438745efae2005aac9ed6e075c6fc70a81f27b
parent46aacf917f39d02c96175d358e7a76fc875ea070 (diff)
downloadNim-6f962a4b3628fe746dba66520d725f4d2d1b5c1a.tar.gz
fixes #14830
-rw-r--r--lib/packages/docutils/highlite.nim2
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