nimpretty: do not produce 'line too long' messages (#15541)

This commit is contained in:
Andreas Rumpf
2020-10-10 17:46:22 +02:00
committed by GitHub
parent c7ccbfac39
commit 992952d868
2 changed files with 3 additions and 5 deletions

View File

@@ -758,8 +758,9 @@ proc handleCRLF(L: var Lexer, pos: int): int =
template registerLine =
let col = L.getColNumber(pos)
if col > MaxLineLength:
lexMessagePos(L, hintLineTooLong, pos)
when not defined(nimpretty):
if col > MaxLineLength:
lexMessagePos(L, hintLineTooLong, pos)
case L.buf[pos]
of CR:

View File

@@ -60,7 +60,4 @@ for t in allFiles:
testTogether(allFiles)
removeDir(outputdir)
if failures > 0: quit($failures & " failures occurred.")