diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-28 10:51:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-28 10:51:08 +0800 |
commit | c644941df823ba25d569d774fe6a0d81836637fe (patch) | |
tree | 124926c2b3aed79aec770f710376003e4632de82 /test | |
parent | 327750470a9ff7588f1c2e8ee935c3457c6b233e (diff) | |
download | lua-language-server-c644941df823ba25d569d774fe6a0d81836637fe.zip |
fix redundant comment of param
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/hover.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index cbd06bd2..f7a04d14 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -472,3 +472,24 @@ function f(x: string, y: table) @*return* `#2` -- comment 3]], } } + +TEST { + { + path = 'a.lua', + content = '', + }, + { + path = 'b.lua', + content = [[ +---Comment +---@param x string +---@return string # this is comment +function f(<?x?>) end + ]] + }, + hover = { + label = [[local x: string]], + name = 'x', + description = '', + } +} |