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 d5ac93bb..58f70028 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -768,7 +768,7 @@ function parseType(parent)
if comments then
resume.comment = table.concat(comments, '\n')
else
- resume.comment = nextComm.text:match('#%s*(.+)', #resumeHead + 1)
+ resume.comment = nextComm.text:match('%s*#?%s*(.+)', resume.finish - nextComm.start)
end
result.types[#result.types+1] = resume
result.finish = resume.finish