summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-10 16:23:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-10 16:23:01 +0800
commitc3c73efb8fbb3e37d0191d3f924283861218a358 (patch)
treefe449ebf84ac56cd9a8928adba04093126997830 /script
parentb778d586096ecfe40832ebf8fd3d795a3d4947dc (diff)
downloadlua-language-server-c3c73efb8fbb3e37d0191d3f924283861218a358.zip
enable `as` table
#2144
Diffstat (limited to 'script')
-rw-r--r--script/vm/compiler.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index a6b95b7c..a4147d70 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1153,6 +1153,9 @@ local compilerSwitch = util.switch()
end)
: case 'table'
: call(function (source)
+ if vm.bindAs(source) then
+ return
+ end
vm.setNode(source, source)
if source.parent.type == 'callargs' then