glualint-1.24.6: Attempts to fix your syntax erroring Lua files.
Safe HaskellSafe-Inferred
LanguageHaskell2010

GLua.LineLimitParser

Description

A parser that takes a maximum line length as input, and emits warnings for any line that exceeds it.

Synopsis

Documentation

newtype LineLimit Source #

The maximum line length

Constructors

LineLimit Int 

lineLimitParser :: FilePath -> LineLimit -> Parser [LintMessage] Source #

Parser that produces warnings about lines being too long

notNewline :: Parser Char Source #

Succeeds when a character is not a line

endOfLines :: Parser () Source #

end of lines. Consumes all r and n characters it finds

lineLimitWarning :: FilePath -> Parser LintMessage Source #

Produces a line limit warning

countAtMost :: Int -> Parser a -> Parser () Source #

Consume the parser until either it has been parsed the Int amount of times, or the parser fails