diff options
Diffstat (limited to 'server-beta/src/parser/compile.lua')
-rw-r--r-- | server-beta/src/parser/compile.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server-beta/src/parser/compile.lua b/server-beta/src/parser/compile.lua index 81a1ba4f..6479106f 100644 --- a/server-beta/src/parser/compile.lua +++ b/server-beta/src/parser/compile.lua @@ -53,7 +53,7 @@ local vmMap = { ['varargs'] = function (obj) local func = guide.getParentFunction(obj) if func then - local index = guide.getFunctionVarArgs(func) + local index, vararg = guide.getFunctionVarArgs(func) if not index then pushError { type = 'UNEXPECT_DOTS', @@ -61,6 +61,12 @@ local vmMap = { finish = obj.finish, } end + if vararg then + if not vararg.ref then + vararg.ref = {} + end + vararg.ref[#vararg.ref+1] = obj + end end end, ['paren'] = function (obj) |