summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/definition/luadoc.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index 31134135..4a23b2ac 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -169,3 +169,31 @@ end
AAAA.a.<?SSDF?>
]]
+
+TEST [[
+---@class Cat
+local <!m!> ---hahaha
+---@class Dog
+local m2
+---@type Cat
+local <?<!v!>?>
+]]
+
+TEST [[
+---@class Cat
+local <!m!> --hahaha
+---@class Dog
+local m2
+---@type Cat
+local <?<!v!>?>
+]]
+
+TEST [[
+---@class Cat
+ local <!m!> ---hahaha
+
+ ---@class Dog
+ local m2
+ ---@type Cat
+ local <?<!v!>?>
+]]