diff --git a/lib/packages/docutils/highlite.nim b/lib/packages/docutils/highlite.nim index f8376f46c371..7542b88018b0 100644 --- a/lib/packages/docutils/highlite.nim +++ b/lib/packages/docutils/highlite.nim @@ -301,6 +301,8 @@ proc nimNextToken(g: var GeneralTokenizer, keywords: openArray[string] = @[]) = g.kind = nimGetKeyword(id) elif isKeyword(keywords, id) >= 0: g.kind = gtKeyword + else: + g.kind = gtIdentifier of '0': inc(pos) case g.buf[pos]