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:
parent
ec8a928272
commit
e7cfab524a
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ local function parse_line(line, state, namespace)
|
||||||
-- anything else are argument, isolate function it its own namespace
|
-- anything else are argument, isolate function it its own namespace
|
||||||
-- (to not mix its args and variables with the main variant)
|
-- (to not mix its args and variables with the main variant)
|
||||||
if rem:match("[^%s]") then
|
if rem:match("[^%s]") then
|
||||||
func_namespace = ("%s(%s)."):format(fqm, r)
|
func_namespace = ("%s(%s)."):format(fqm, tostring(r))
|
||||||
r.private_namespace = true
|
r.private_namespace = true
|
||||||
end
|
end
|
||||||
-- define function
|
-- define function
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue