summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 9b041870..810faa8c 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -638,6 +638,13 @@ function parseType(parent)
end
elseif tp == 'string' then
nextToken()
+ -- compatibility
+ if content:sub(1, 1) == '"'
+ or content:sub(1, 1) == "'" then
+ if content:sub(1, 1) == content:sub(-1, -1) then
+ content = content:sub(2, -2)
+ end
+ end
local typeEnum = {
type = 'doc.type.enum',
start = getStart(),