diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-08-10 17:04:20 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-08-10 17:04:20 +0800 |
commit | 63211177f8f3ad2a50dca3ab2ccaae737486813c (patch) | |
tree | fa13aaf9674258efc6a4625650dfe7572988b7e8 /script/parser/luadoc.lua | |
parent | c3c73efb8fbb3e37d0191d3f924283861218a358 (diff) | |
download | lua-language-server-63211177f8f3ad2a50dca3ab2ccaae737486813c.zip |
support `@type` for `return`
#2144
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 6a1e8fff..3454b241 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1822,7 +1822,7 @@ local function bindDocsBetween(sources, binded, start, finish) or src.type == 'setindex' or src.type == 'setmethod' or src.type == 'function' - or src.type == 'table' + or src.type == 'return' or src.type == '...' then if bindDoc(src, binded) then ok = true @@ -1934,7 +1934,7 @@ local bindDocAccept = { 'local' , 'setlocal' , 'setglobal', 'setfield' , 'setmethod' , 'setindex' , 'tablefield', 'tableindex', 'self' , - 'function' , 'table' , '...' , + 'function' , 'return' , '...' , } local function bindDocs(state) |