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 3ab9f6a1..ae8e3f34 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1012,7 +1012,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