lua-users home
lua-l archive

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


On 06/06/2018 03:13 PM, Jon Chesterfield wrote:
>>> Just to show my lua code formatter written in python3.
>>
>> That is a serious affront. Surely Lua itself is perfectly adequate for the
>> task?
>>
> 
> Is there an implementation of a lua code formatter in lua? I'd prefer to
> use one, but if there isn't, this one may be worth a try.
> 

I'm author of https://github.com/martin-eden/lua_code_formatter .
It's written in Lua and intended to reformat files with Lua code.

Simplest way to try it is:

  $ sudo luarocks install lcf
  $ lua.reformat

-- Martin