summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoralwo <albrecht.woess@signum.plus>2023-03-22 09:36:37 +0100
committeralwo <albrecht.woess@signum.plus>2023-03-22 09:36:37 +0100
commit98f9f15508f37ca73aa92e8f8943af8a4706df18 (patch)
tree29b4ecffa91d7b20f898d17e2edc47499e5bae5b /test
parent759e2f8c303ed9985b1a7cb9ad4886d705576476 (diff)
parentb8627365c0abe5a9d40c91f81b2aef7ea869faad (diff)
downloadlua-language-server-98f9f15508f37ca73aa92e8f8943af8a4706df18.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/hover.lua39
1 files changed, 30 insertions, 9 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 3cd560ff..7763d643 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -575,7 +575,7 @@ function f(x: string, y: table)
@*param* `x` — this is comment
-@*param* `y` — comment 1
+@*param* `y` — comment 1
@*return* `name` — comment 2
@@ -746,7 +746,7 @@ function f(a: boolean)
---
-@*param* `a` — xxx
+@*param* `a` — xxx
```lua
a:
@@ -1308,7 +1308,7 @@ local n: integer
---
- comments]]
+comments]]
}
TEST {
@@ -1365,7 +1365,7 @@ local n: integer
---
- comments]]
+comments]]
}
TEST {
@@ -1384,7 +1384,7 @@ local n: integer
---
- comments]]
+comments]]
}
TEST {
@@ -1461,7 +1461,7 @@ TEST {
---
- comments]]
+comments]]
}
TEST {
@@ -1708,7 +1708,7 @@ local x: unknown
---
-See: [A](file:///a.lua#1#10) comment1]]
+See: [A](file:///a.lua#1#10) comment1]]
}
TEST { {path = 'a.lua', content = [[
@@ -1728,8 +1728,8 @@ local x: unknown
---
See:
- * [A](file:///a.lua#1#10) comment1
- * [TTT](file:///a.lua#3#0) comment2]]
+ * [A](file:///a.lua#1#10) comment1
+ * [TTT](file:///a.lua#3#0) comment2]]
}
TEST { {path = 'a.lua', content = [[
@@ -1755,3 +1755,24 @@ comment2
function f()
```]]
}
+
+TEST { {path = 'a.lua', content = [[
+---"hello world" this is ok
+---@param bar any "lorem ipsum" this is ignored
+---@param baz any # "dolor sit" this is ignored
+local function <?foo?>(bar, baz)
+end
+]]},
+hover = [[
+```lua
+function foo(bar: any, baz: any)
+```
+
+---
+
+"hello world" this is ok
+
+@*param* `bar` — "lorem ipsum" this is ignored
+
+@*param* `baz` — "dolor sit" this is ignored]]
+}