diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-06-14 14:21:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-06-14 14:21:39 +0800 |
commit | 4259e92b65dc5091147eea593b831cf6e41ee208 (patch) | |
tree | 78f1d4be5e59b1a4f3d67660316e2017e6c20a4d /script/parser | |
parent | 484f993c6a1026b7eb04d48ff4aee00e2dcafd54 (diff) | |
download | lua-language-server-4259e92b65dc5091147eea593b831cf6e41ee208.zip |
fix incorrect doc range
fix #2110
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/luadoc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index c022adcb..e251aa3e 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1534,7 +1534,7 @@ local function buildLuaDoc(comment) parseTokens(doc, startOffset + startPos) local result, rests = convertTokens(doc) if result then - result.range = comment.finish + result.range = math.max(comment.finish, result.finish) local finish = result.firstFinish or result.finish if rests then for _, rest in ipairs(rests) do |