Reduce code + Remove github workflow

This commit is contained in:
Jean-Patrick Guerrero
2021-11-29 19:15:14 +01:00
parent 91af3b73d2
commit 27226a0d1b
14 changed files with 46 additions and 82 deletions

View File

@ -36,6 +36,10 @@ local operators = {
}
local function compile(data)
data = data:gsub("IMPORT%((.-)%)", function(a)
return "local " .. a:gsub("\"", "") .. " = i3.get(" .. a .. ")"
end)
for op, func in pairs(operators) do
data = data:gsub("(" .. var .. "+)%s?" .. op .. "%s?(" .. var .. "*)", func)
end