summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 52f1083b..03a34dbd 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1108,6 +1108,12 @@ local compilerSwitch = util.switch()
end
end
end
+
+ -- { f = function (<?x?>) end }
+ if source.parent.type == 'tablefield'
+ or source.parent.type == 'tableindex' then
+ vm.setNode(source, vm.compileNode(source.parent))
+ end
end)
: case 'paren'
: call(function (source)