summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-07 19:39:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-07 19:39:41 +0800
commitd50a75aac341d6b87caadb3eb9b863cb8ebe2751 (patch)
treef0e5d087cd0877fd6796c9664483ba353a503019 /test/crossfile
parent488471b7f810651fc451457123e897c30fbfb131 (diff)
downloadlua-language-server-d50a75aac341d6b87caadb3eb9b863cb8ebe2751.zip
resolve #970 read comments in `---@type`
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua17
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]]
+}