From 38a2b7f9df15b8737ba6fba27861eba50b2277b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 10 Mar 2022 20:11:36 +0800 Subject: update --- script/parser/luadoc.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'script/parser') 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(), -- cgit v1.2.3