diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-29 14:53:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-29 14:53:56 +0800 |
commit | 88ff3f4ae07311d4aed9c15df723c50da948f24f (patch) | |
tree | e5e16423a97496676a4b56fc157f21e9885cc306 /script-beta/core | |
parent | 049eaa1446d8b53cef14ec3a72f315f162ead2bc (diff) | |
download | lua-language-server-88ff3f4ae07311d4aed9c15df723c50da948f24f.zip |
暂存
Diffstat (limited to 'script-beta/core')
-rw-r--r-- | script-beta/core/semantic-tokens.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/semantic-tokens.lua b/script-beta/core/semantic-tokens.lua index af1409c1..8947bd88 100644 --- a/script-beta/core/semantic-tokens.lua +++ b/script-beta/core/semantic-tokens.lua @@ -64,7 +64,7 @@ Care['getlocal'] = function (source, results) end -- 3. 不是函数的局部变量 local hasFunc - for _, def in ipairs(vm.getDefs(loc)) do + for _, def in ipairs(vm.getDefs(loc, 'simple')) do if def.type == 'function' or (def.type == 'library' and def.value.type == 'function') then hasFunc = true |