lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I am writing to announce Formatter [1], which aims to beatify Lua code.
To be fair, it is more an indenter. It will not put spaces after your parenthesis or cut your line of codes.
We try to do it simple:
* Pure Lua
* Remove trailing spaces
* Indent statements
* Indent expressions
* Do not touch multi-line strings

You can install it from luarocks
    $ luarocks install formatter
It is open source [2].

Kevin

[1] https://github.com/LuaDevelopmentTools/luaformatter/tree/v0.1.1-1#lua-formatter
[2] https://github.com/LuaDevelopmentTools/luaformatter