summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-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