styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
This commit is contained in:
parent
96523cdd3e
commit
c94647aeca
90 changed files with 680 additions and 652 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue