diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 14:38:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 14:38:41 +0800 |
commit | 6176475e3fabd4506a8c59222d3c83dbeeb2f1eb (patch) | |
tree | b9a027aac314ac07cb630addc07d8b707ecbf52c /script/vm/def.lua | |
parent | b1e0cdbeb13656f1fcd6cb2d45b8095e5b511457 (diff) | |
download | lua-language-server-6176475e3fabd4506a8c59222d3c83dbeeb2f1eb.zip |
don't find other locals
fix #1670
Diffstat (limited to 'script/vm/def.lua')
-rw-r--r-- | script/vm/def.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vm/def.lua b/script/vm/def.lua index b1bedc43..9bc6159b 100644 --- a/script/vm/def.lua +++ b/script/vm/def.lua @@ -69,6 +69,12 @@ function vm.getDefs(source) return end hasLocal = true + if source.type ~= 'local' + and source.type ~= 'getlocal' + and source.type ~= 'setlocal' + and source.type ~= 'doc.cast.name' then + return + end end if not mark[src] then mark[src] = true |