diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-05 15:21:17 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-05 15:21:17 +0800 |
commit | c0ee6e9d999918bc7599625feddbff6ba005c270 (patch) | |
tree | a68aeb030f47495c61a56e85683c2a4f89157f0d /script | |
parent | 60189b2603798bba46e0c0aefdbad575efebfcee (diff) | |
download | lua-language-server-c0ee6e9d999918bc7599625feddbff6ba005c270.zip |
fix #1279
Diffstat (limited to 'script')
-rw-r--r-- | script/vm/compiler.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |