LuaFormatter icon indicating copy to clipboard operation
LuaFormatter copied to clipboard

Support adding / ignoring unknown keywords

Open Lexicality opened this issue 5 years ago • 3 comments
trafficstars

I'm working on a modified version of lua that added the continue keyword and I want to format files that contain it. Either a config option to add new keywords or an option to treat unknown keywords like return would be very useful.

Lexicality avatar Aug 02 '20 13:08 Lexicality

You may modify the Lua.g4 grammar to your tweaks and it should work just fine

tammela avatar Aug 02 '20 17:08 tammela

I can definitely do that, but maintaining a fork sounds like a chore

Lexicality avatar Aug 04 '20 16:08 Lexicality

Similarly, premake uses some functions to "open" block. Wonder if it could be handled in some way.

Jarod42 avatar Mar 08 '23 16:03 Jarod42