LuaFormat
LuaFormat copied to clipboard
Lua Format Plugin For Sublime Text
function equp.calhecheng(id) local count = equp.calhechengcount() local item = { t = "em", em = { id = id, count = count }} return {item} end
if test then fun(function() log(a, os.time(), 0, 0, table.concat({1 }, "|")) end, b) end
``` n = 2 + 2.22 + 22.22e-2 + 0.22E1 n = 0xF0 function Set.mt.__lt (a,b) return a
function test:check() if some == 1 then self:call(funA:create(funB(1), funC( function() if self.m_class == nil then self.m_class = classA.new( { a = 1, b = 2, c = 3 }):addTo(self) else...
it can NEVER seem to handle anonymous functions like: if pcall(function () print('test1') error() end)then print('test2') else print('test3') end this is how lua format will make this look, making all...

i need a function to format the selection part only, rather than the whole lua file.