summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-25 16:31:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-25 16:31:46 +0800
commit2d6a3b6875fe50854b3f8cdf5dd13bd2b342e3e8 (patch)
treee3fe1b09f1111ea5d62f7b96ea4ade36ee23bfe8 /script/parser
parent8f420030bf306d78583863356b13b716d30bebda (diff)
downloadlua-language-server-2d6a3b6875fe50854b3f8cdf5dd13bd2b342e3e8.zip
update
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/luadoc.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index b1d0a364..2d21c9ac 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -425,9 +425,10 @@ local function parseTypeUnit(parent, content)
return result
end
-local function parseResume()
+local function parseResume(parent)
local result = {
- type = 'doc.resume'
+ type = 'doc.resume',
+ parent = parent,
}
if checkToken('symbol', '>', 1) then
@@ -456,7 +457,6 @@ local function parseResume()
return result
end
-local LastType
function parseType(parent)
local result = {
type = 'doc.type',
@@ -557,7 +557,7 @@ function parseType(parent)
row = row + i + 1
local finishPos = nextComm.text:find('#', 3) or #nextComm.text
parseTokens(nextComm.text:sub(3, finishPos), nextComm.start + 1)
- local resume = parseResume()
+ local resume = parseResume(result)
if resume then
if comments then
resume.comment = table.concat(comments, '\n')