From c94647aecad6ed7fd12152800437a6cda11e06e6 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 10 Jul 2019 12:42:23 +0200 Subject: styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error --- lib/packages/docutils/highlite.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/packages/docutils') diff --git a/lib/packages/docutils/highlite.nim b/lib/packages/docutils/highlite.nim index 190faac51..ca6a3e05e 100644 --- a/lib/packages/docutils/highlite.nim +++ b/lib/packages/docutils/highlite.nim @@ -865,7 +865,7 @@ proc yamlNextToken(g: var GeneralTokenizer) = inc(pos) while g.buf[pos] in {'0'..'9', '+', '-'}: inc(pos) of '0'..'9': yamlPossibleNumber(g, pos) - of '\0': g.kind = gtEOF + of '\0': g.kind = gtEof else: yamlPlainStrLit(g, pos) else: # outside document @@ -883,7 +883,7 @@ proc yamlNextToken(g: var GeneralTokenizer) = of '#': g.kind = gtComment while g.buf[pos] notin {'\0', '\x0A', '\x0D'}: inc(pos) - of '\0': g.kind = gtEOF + of '\0': g.kind = gtEof else: g.kind = gtNone g.state = gtOther -- cgit 1.4.1-2-gfad0