/fmtlua

Lua formatter

Primary LanguagePython

fmtlua

A Lua source code formatter, with an emphasis on whitespace.

Features:

  • Lua tokeniser

  • TODO: Allows you to configure whitesapce between any patterns of source tokens.

  • White space configuration includes

    • TODO: Indentation alignment
    • TODO: Impose min/max newlines
    • TODO: In-line comment allignment
  • TODO: Impose max line-length (default 80 chars)

  • TODO: Trim trailing whitespace on lines

  • TODO: Enforce file ending in newline

Installing

Run:

$ pip3 install .

Or, to develop fmtlua sources, try:

$ pip3 install --user -e .