mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
nimpretty: do not produce 'line too long' messages (#15541)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -60,7 +60,4 @@ for t in allFiles:
|
||||
testTogether(allFiles)
|
||||
removeDir(outputdir)
|
||||
|
||||
|
||||
|
||||
|
||||
if failures > 0: quit($failures & " failures occurred.")
|
||||
|
||||
Reference in New Issue
Block a user