lua-users home
lua-l archive

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


On 06/23/13 00:47, Patrick Donnelly wrote:
Hi List,

Lunadry is a small project for formatting code using LPEG. Right now
it just does Lua code.

Currently it only formats code one way. That is my top priority to
change. It'd be nice if you could have a .lunadry.rc file similar to
how GNU indent has a .indent.pro.

https://github.com/batrick/lunadry

[I've sat on this project for, surprisingly, two years and mentioned
it in passing at least once on this list. I figured now is as good a
time as any to make it public. If you want to contribute, send me your
pull requests =).]

Cheers,

--
Patrick Donnelly

Just for fun:
$ diff -uN lunadry.lua <(lua5.1 lunadry.lua < lunadry.lua) | wc lunadry.lua <(lua5.1 lunadry.lua < lunadry.lua) -
    322    2551   14415 lunadry.lua
    260    2569   13681 /proc/self/fd/14 # lunadry.lua's size transformed
    443    4642   24124 - # the patch size