pp: Make format more Lua-ish

master
Lars Mueller 2022-07-06 16:51:38 +02:00
parent 5d2e82b128
commit 67d0a9167b
1 changed files with 1 additions and 1 deletions

2
pp.lua
View File

@ -147,7 +147,7 @@ local pp = function(params, ...)
write" "; write("end", "function")
if write_upvals then
indent = indent - 1; newline()
write("end", "function"); write")"
write("end", "function"); write")()"
end
elseif typ == "table" then
write"{"