summaryrefslogtreecommitdiff
path: root/server/test/references/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-25 14:28:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-25 14:28:13 +0800
commit9d8bd2d1964dc28d30837eafeec7389e26c6fa98 (patch)
tree851d1877c86355831b5f9dbba067a0f95744ffbe /server/test/references/init.lua
parente76dd6108712200905e05edef73f6e71bcab40ff (diff)
downloadlua-language-server-9d8bd2d1964dc28d30837eafeec7389e26c6fa98.zip
支持查找匿名函数的引用
Diffstat (limited to 'server/test/references/init.lua')
-rw-r--r--server/test/references/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/test/references/init.lua b/server/test/references/init.lua
index bcaafbbc..6a8b42db 100644
--- a/server/test/references/init.lua
+++ b/server/test/references/init.lua
@@ -85,3 +85,12 @@ function <!mt!>:a()
<?self?>:remove()
end
]]
+
+TEST [[
+local function f()
+ return <?function ()
+ end?>
+end
+
+local <!f2!> = f()
+]]