Go to file
rusefillc 05ad23c8b5 public method parameter type should be public 2021-11-25 09:21:37 -05:00
dist bugfixs 2019-06-25 13:23:24 +08:00
src/neoe public method parameter type should be public 2021-11-25 09:21:37 -05:00
.classpath release 2018-03-21 15:51:33 +08:00
.gitignore release 2018-03-21 15:51:33 +08:00
.project release 2018-03-21 15:51:33 +08:00
README.md Update README.md 2018-03-29 16:12:57 +08:00
mybuild bugfixs 2019-06-25 13:23:24 +08:00
run.cmd update 2018-03-21 15:58:56 +08:00

README.md

LUAFORMATTER

luaformatter is a lua source code formatter written in Java by Neoe.

It use a handcrafted parser as little as 300 lines of Java code.

How to use

  • install java (JRE from java.com) if not installed
  • run.cmd (java -jar luaformatter.jar ), args:
-o  -- overwrite source
-e<ENCODING> -- use ENCODING
input-files-or-dirs

Files cause formatting error will be picked up automatically and save to .fmt-err.lua files.

Why

I have tried several lua formatters online but no one work good, so I wrote this really works thing.

What should a formatter be?

  • Result should still compiles.
  • A -format-> B -format(again)-> C, then B should be same with C.
  • Result should be beautiful to read.