summaryrefslogtreecommitdiff
path: root/script/core/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-07 14:10:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-07 14:10:50 +0800
commitb175fd29848e5f09ae8eba6372966c85184d107f (patch)
treef8b84a500c6474019bc7b469d532b1af401c2153 /script/core/diagnostics
parent885013052b8ad1f5d736a26212fc5926b228c020 (diff)
downloadlua-language-server-b175fd29848e5f09ae8eba6372966c85184d107f.zip
fix
Diffstat (limited to 'script/core/diagnostics')
-rw-r--r--script/core/diagnostics/assign-type-mismatch.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/diagnostics/assign-type-mismatch.lua b/script/core/diagnostics/assign-type-mismatch.lua
index 9646878a..3ec0a56c 100644
--- a/script/core/diagnostics/assign-type-mismatch.lua
+++ b/script/core/diagnostics/assign-type-mismatch.lua
@@ -76,7 +76,8 @@ return function (uri, callback)
return
end
if source.type == 'setfield'
- or source.type == 'setindex' then
+ or source.type == 'setindex'
+ or source.type == 'tableexp' then
return
end
end