1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00

Fix Lua 5.1 compatibility

Well error messages are still wrong due to pcall limitations in 5.1 but it works as intended.
This commit is contained in:
Étienne Fildadut 2021-12-12 16:00:05 +01:00
parent ec8a928272
commit e7cfab524a

View file

@ -83,7 +83,7 @@ local function parse_line(line, state, namespace)
-- anything else are argument, isolate function it its own namespace
-- (to not mix its args and variables with the main variant)
if rem:match("[^%s]") then
func_namespace = ("%s(%s)."):format(fqm, r)
func_namespace = ("%s(%s)."):format(fqm, tostring(r))
r.private_namespace = true
end
-- define function