From 625f5be9a6ae1c30dd5821f1dd2485073d054209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 2 Nov 2022 17:29:18 +0800 Subject: `---@see` use workspace-symbol #1344 --- test/definition/init.lua | 1 + test/definition/luadoc.lua | 23 +++++++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) (limited to 'test/definition') diff --git a/test/definition/init.lua b/test/definition/init.lua index 7e0a7989..eb6f1435 100644 --- a/test/definition/init.lua +++ b/test/definition/init.lua @@ -21,6 +21,7 @@ local function founded(targets, results) return true end +---@async function TEST(script) local newScript, catched = catch(script, '!?') diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index c14e1242..d8da938e 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -207,23 +207,30 @@ y. ]] TEST [[ ----@class -local unit!> +---@class +local mt -function unit:pants() +function mt:f() end ----@see +---@see ]] TEST [[ ----@class loli -local unit +---@class A +local mt -function unit:() +function () end ----@see loli# +---@see +]] + +TEST [[ +AAA = {} + = 1 + +---@see ]] TEST [[ -- cgit v1.2.3