summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-04 16:06:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-04 16:06:28 +0800
commit9451329b33de1e7b69f2793ac5f94715826c9895 (patch)
tree5699d9bae02f77724eb906ce863afaa72a424f62 /script/core
parent57a164bf73714f5a4f9d3eb65eb0f0361d21eed7 (diff)
downloadlua-language-server-9451329b33de1e7b69f2793ac5f94715826c9895.zip
update
Diffstat (limited to 'script/core')
-rw-r--r--script/core/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/definition.lua b/script/core/definition.lua
index 3323cb84..b089bdab 100644
--- a/script/core/definition.lua
+++ b/script/core/definition.lua
@@ -152,7 +152,7 @@ return function (uri, offset)
goto CONTINUE
end
else
- if guide.isLiteral(src) then
+ if guide.isLiteral(src) and src.type ~= 'function' then
goto CONTINUE
end
end