summaryrefslogtreecommitdiff
path: root/test/definition
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-15 18:04:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-15 18:04:16 +0800
commit82d716ccaa8ebab931fd2328faa4f4c5a76eb99a (patch)
treeaaebc8675ed44c172283b9979817bf023c29675e /test/definition
parentac3235f4e9b800b0726a2e90555b109d5b58abfb (diff)
downloadlua-language-server-82d716ccaa8ebab931fd2328faa4f4c5a76eb99a.zip
resolve #1224 show comments for `doc.field`
Diffstat (limited to 'test/definition')
-rw-r--r--test/definition/luadoc.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index b07396fa..2d927016 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -907,3 +907,15 @@ local function f()
---@cast <?x?> integer
end
]]
+
+TEST [[
+---@class A
+---@field <!x!> number
+
+---@param a A
+local function f(a) end
+
+f {
+ <!<?x?>!> = 1,
+}
+]]