From c0ee6e9d999918bc7599625feddbff6ba005c270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 5 Jul 2022 15:21:17 +0800 Subject: fix #1279 --- script/vm/compiler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 1936fc75..cb54b054 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -663,7 +663,7 @@ function vm.compileByParentNode(source, key, ref, pushResult) ---@cast node vm.global and not guide.isBasicType(node.name) ) - or node.type == 'doc.type.string' then + or guide.isLiteral(node) then searchFieldSwitch(node.type, suri, node, key, ref, function (res, markDoc) if markDoc then docedResults[#docedResults+1] = res -- cgit v1.2.3