summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-01 14:52:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-01 14:52:45 +0800
commitf050b38fd69bd1c90b99b536f89f8036c9f4fc3a (patch)
treef0564c91d20fbb9e26aad2b315df9aad4ff747e7 /script/vm/compiler.lua
parentae95f749532c2252c671d1b3cab73d7e18cf777c (diff)
downloadlua-language-server-f050b38fd69bd1c90b99b536f89f8036c9f4fc3a.zip
update search reference
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 69cfdc55..a38329f8 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1610,6 +1610,10 @@ local compilerSwitch = util.switch()
end
vm.setNode(source, fieldNode)
end)
+ : case 'doc.field.name'
+ : call(function (source)
+ vm.setNode(source, vm.compileNode(source.parent))
+ end)
: case 'doc.type.field'
: call(function (source)
if not source.extends then