plugin-lua
plugin-lua copied to clipboard
Prettier Lua Plugin (WIP)
current output ```lua assert( context:ReturnBabel( [[ fetch("asset://garrysmod/data/a.txt") .then((response) => response.text()) .then(a => console.log(a)) .catch(a => console.warn(a)) ]] ):await() ) ``` expected output ```lua assert( context:ReturnBabel([[ fetch("asset://garrysmod/data/a.txt") .then((response) => response.text()) .then(a...
current output ```lua do ent = function(sock) local contents = "ENT = {}; local ENT=ENT; " .. sock:receive( "*a" ) .. "; scripted_ents.Register(ENT, '" .. who:sub(0, -5) .. "')" end...
input ```lua call() -- line comment call() ``` output ```lua call() -- line comment call() ``` expected output ```lua call() -- line comment call() ```
http://luajit.org/ext_ffi_api.html#literals