diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-21 12:41:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 12:41:27 +0800 |
commit | 468c01836db316ca54d538aa0a78b1ed43d704f0 (patch) | |
tree | 7cb43d468056a418914265b160864a0c88c58686 /test/definition | |
parent | 18418c3a908a3608f52bf4a991f21508df74aa44 (diff) | |
parent | b397ee1e604452fd0a66f8495d5271fda5db4d21 (diff) | |
download | lua-language-server-468c01836db316ca54d538aa0a78b1ed43d704f0.zip |
Merge pull request #314 from uhziel/luadoc-error
处理luadoc在某些情况绑定错误的情况
Diffstat (limited to 'test/definition')
-rw-r--r-- | test/definition/luadoc.lua | 28 |
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!>?> +]] |