diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-02 17:29:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-02 17:29:18 +0800 |
commit | 625f5be9a6ae1c30dd5821f1dd2485073d054209 (patch) | |
tree | 2581abc44fa0b6a42b590fc842501b8a9edf9a1f /script/parser/luadoc.lua | |
parent | 3bf48c900605681216ce7c14cfe0cb43e583de4f (diff) | |
download | lua-language-server-625f5be9a6ae1c30dd5821f1dd2485073d054209.zip |
`---@see` use workspace-symbol
#1344
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 040a9a9b..b646d1a9 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1192,15 +1192,15 @@ local docSwitch = util.switch() } result.name = parseName('doc.see.name', result) if not result.name then + pushWarning { + type = 'LUADOC_MISS_SEE_NAME', + start = getStart(), + finish = getFinish(), + } return nil end - result.start = result.name.start + result.start = result.name.start result.finish = result.name.finish - if checkToken('symbol', '#', 1) then - nextToken() - result.field = parseName('doc.see.field', result) - result.finish = getFinish() - end return result end) : case 'diagnostic' |