summaryrefslogtreecommitdiff
path: root/test/definition
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-21 12:41:27 +0800
committerGitHub <noreply@github.com>2020-12-21 12:41:27 +0800
commit468c01836db316ca54d538aa0a78b1ed43d704f0 (patch)
tree7cb43d468056a418914265b160864a0c88c58686 /test/definition
parent18418c3a908a3608f52bf4a991f21508df74aa44 (diff)
parentb397ee1e604452fd0a66f8495d5271fda5db4d21 (diff)
downloadlua-language-server-468c01836db316ca54d538aa0a78b1ed43d704f0.zip
Merge pull request #314 from uhziel/luadoc-error
处理luadoc在某些情况绑定错误的情况
Diffstat (limited to 'test/definition')
-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!>?>
+]]