add simple lua format base on js. #1569
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this implement/fix? Explain your changes.
I want to format Lua, but need install perl frist? It's not cool.
so, I use js, and translate it to coffee.
the current perl version has some bug like following:
local a = "a..b...c"
will belocal a = "a.b.c"
(use'.'
to represent' '
)Does this close any currently open issues?
Of course, many of issues about 'Lua' and 'format'.
Any other comments?
yes, I am not good at coffee, so if my code is not friendly to read. just edit it.
BTW, when I use Travis CI, Lua is OK, but other 9 language fail, I do not think I'm causing it.
Checklist
Check all those that are applicable and complete.
master
branch