Warn about leading tabs
commitfe40c0701d91a4fc53325330648358abd12f78e6
authorOleg Grenrus <oleg.grenrus@iki.fi>
Sun, 14 Jan 2018 21:25:47 +0000 (14 23:25 +0200)
committerOleg Grenrus <oleg.grenrus@iki.fi>
Tue, 16 Jan 2018 11:07:00 +0000 (16 13:07 +0200)
tree48f6ffb1ba52a1bc4db44ed9d71e03b978d60928
parent11e16136327aec757d0680df10652066b321b8b1
Warn about leading tabs

There are 3957 warned files atm in Hackage index.
All of them have tab "inside the field", thus old parser acceps them.

See e.g added th-lift-instances file. The warning comes from the description field.
13 files changed:
Cabal/Cabal.cabal
Cabal/Distribution/PackageDescription/Parsec.hs
Cabal/Distribution/Parsec/Common.hs
Cabal/Distribution/Parsec/Lexer.hs
Cabal/Distribution/Parsec/LexerMonad.hs
Cabal/tests/ParserTests.hs
Cabal/tests/ParserTests/regressions/Octree-0.5.format
Cabal/tests/ParserTests/regressions/th-lift-instances.cabal [new file with mode: 0644]
Cabal/tests/ParserTests/regressions/th-lift-instances.expr [new file with mode: 0644]
Cabal/tests/ParserTests/regressions/th-lift-instances.format [new file with mode: 0644]
Cabal/tests/ParserTests/warnings/subsection.cabal
Cabal/tests/ParserTests/warnings/tab.cabal [new file with mode: 0644]
boot/Lexer.x