You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is what we developed a little while ago, me and @Xandaros both use vim. If you can decipher this and convert to gsub for Lua, then good luck.
"Spaces after [ and before ]"Macro recorded into a:
qaa<space><esc>f]i<space><esc>q
Find all the [something] instances. [ and ] without spaces after and before.
/[[^ ]
Replace "[x" with "[ x"andconfirm; omits [] from search
:%s/[\([^ ]]\)/[ \1/gc
Replace "x]" with "x ]"andconfirm; omits [] from search
:%s/\([^ []\)]/\1 ]/gc
Replace "(x" with "( x"andconfirm; omits () from search
:%s/(\([^ )]\)/( \1/gc
Replace "x)" with "x )"andconfirm; omits () from search
:%s/\([^ (]\))/\1 )/gc
Replace:
functionname(
with
function name (
:%s/function \([^ ]*\)(/function\1 (/gc
replace:
function(
with
function (
:%s/function(/function (/gc
Something like LuaDoc that can go through all / some code an format it into the proper code style.
The text was updated successfully, but these errors were encountered: