Skip to content

Commit a379960

Browse files
committed
fix #994
1 parent 66de37c commit a379960

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* `CHG` hover: split `local` into `local` / `parameter` / `upvalue` / `self`.
77
* `CHG` hover: added parentheses to some words, such as `global` / `field` / `class`.
88
* `FIX` definition of `table<k, v>`
9+
* `FIX` [#994](https://github.com/sumneko/lua-language-server/issues/994)
910
* `FIX` [#1057](https://github.com/sumneko/lua-language-server/issues/1057)
1011
* `FIX` runtime errors reported by telemetry, see [#1058](https://github.com/sumneko/lua-language-server/issues/1058)
1112

script/parser/luadoc.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,7 @@ local function bindDocsBetween(sources, binded, bindSources, start, finish)
14061406
or src.type == 'tableindex'
14071407
or src.type == 'setfield'
14081408
or src.type == 'setindex'
1409+
or src.type == 'setmethod'
14091410
or src.type == 'function' then
14101411
src.bindDocs = binded
14111412
bindSources[#bindSources+1] = src

test/diagnostics/common.lua

+10
Original file line numberDiff line numberDiff line change
@@ -1395,3 +1395,13 @@ T.x = 1
13951395
13961396
print(<!T.x!>)
13971397
]]
1398+
1399+
TEST [[
1400+
T = {}
1401+
1402+
---@deprecated
1403+
function T:ff()
1404+
end
1405+
1406+
<!T:ff!>()
1407+
]]

0 commit comments

Comments
 (0)