summaryrefslogtreecommitdiff
path: root/server-beta/src/parser/ast.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/parser/ast.lua')
-rw-r--r--server-beta/src/parser/ast.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-beta/src/parser/ast.lua b/server-beta/src/parser/ast.lua
index f22033db..3ee264c1 100644
--- a/server-beta/src/parser/ast.lua
+++ b/server-beta/src/parser/ast.lua
@@ -898,6 +898,7 @@ local Defs = {
end
local loc = createLocal(name, start, actions)
+ loc.localfunction = true
return loc
end,
@@ -1038,6 +1039,9 @@ local Defs = {
elseif key.type == 'getfield' then
key.type = 'setfield'
key.value = getValue(values, i)
+ elseif key.type == 'getindex' then
+ key.type = 'setindex'
+ key.value = getValue(values, i)
end
end
return tableUnpack(keys)