summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-12 15:05:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-12 15:05:48 +0800
commit5f074dc6a601edd730b457f6004cffacfdb6d66a (patch)
tree25bb2207bc7f1b21dadff2446aaf1cac82814431 /script/parser/luadoc.lua
parent690aadefc66e447b3f3205882c1fbcc8df987bda (diff)
parent8237a3cf5bb4005e1a9a0268c614abdd6a1f34d0 (diff)
downloadlua-language-server-5f074dc6a601edd730b457f6004cffacfdb6d66a.zip
Merge remote-tracking branch 'origin/master' into 2.0.0
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 0edf5371..5f70a9e5 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1003,7 +1003,7 @@ local function trimTailComment(text)
end
if comment:find '^%s*[\'"[]' then
local result = grammar(nil, comment:gsub('^%s+', ''), 'string')
- if result then
+ if result and result[1] then
comment = result[1][1]
end
end