diff options
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index e33ec234..b7e394ae 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1375,7 +1375,10 @@ local compilerSwitch = util.switch() if not hasMarkDoc then vm.compileByParentNode(source.parent, guide.getKeyName(source), false, function (src) - vm.setNode(source, vm.compileNode(src)) + if src.type == 'doc.field' + or src.type == 'doc.type.field' then + vm.setNode(source, vm.compileNode(src)) + end end) end end) |