summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-07 02:58:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-07 02:58:03 +0800
commit84441873f6b0e4a75ee9b9d96d88c5609c7a48dc (patch)
tree6f390e1e74cca7a0b0bb70a7680519af0fa43c04 /script/vm/compiler.lua
parente9975c2081dfe2f42392a7612b2a3862e513e45e (diff)
downloadlua-language-server-84441873f6b0e4a75ee9b9d96d88c5609c7a48dc.zip
update
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index e244c6c3..8ee35ad4 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -720,7 +720,8 @@ local compilerSwitch = util.switch()
compileByLocalID(source)
local key = guide.getKeyName(source)
m.compileByParentNode(source.node, key, function (src)
- if src.type == 'doc.type.field' then
+ if src.type == 'doc.type.field'
+ or src.type == 'doc.field' then
nodeMgr.setNode(source, m.compileNode(src))
end
end)