nimpretty: do not produce 'line too long' messages (#15541)
This commit is contained in:
parent
c7ccbfac39
commit
992952d868
2 changed files with 3 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue