diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-07 19:39:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-07 19:39:41 +0800 |
commit | d50a75aac341d6b87caadb3eb9b863cb8ebe2751 (patch) | |
tree | f0e5d087cd0877fd6796c9664483ba353a503019 /test/crossfile | |
parent | 488471b7f810651fc451457123e897c30fbfb131 (diff) | |
download | lua-language-server-d50a75aac341d6b87caadb3eb9b863cb8ebe2751.zip |
resolve #970 read comments in `---@type`
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/hover.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index 69aa9239..e391014d 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -1220,3 +1220,20 @@ ret1: | 'r4' ```]] } + +TEST { + { + path = 'a.lua', + content = [[ + ---@type integer @ comments + local <?n?> + ]] + }, + hover = [[ +```lua +local n: integer +``` + +--- + comments]] +} |