LoveDaisy / lua_formatter

a simple and short script to format Lua codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lua Formatter

This is a simple and short script to format Lua codes.

Usage:

python lua_format.py <path>

and it will do reformat for all Lua scripts in <path>. You can do test on provided lua_script.lua by doing

python lua_format.py .

WARNING

Formatting will be done inplace. i.e. It will OVERWRITE your original codes. Make sure you have a backup!

About

a simple and short script to format Lua codes


Languages

Language:Python 72.0%Language:Lua 28.0%