From 12b087704082f6d2278c8eb06bd9ac3e7f014c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 16 Apr 2022 22:11:23 +0800 Subject: fix #1061 --- script/parser/luadoc.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script/parser') diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index b46c81d9..5a2e1d09 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -558,10 +558,12 @@ local function parseString(parent) end nextToken() + local mark = getMark() -- compatibility if content:sub(1, 1) == '"' or content:sub(1, 1) == "'" then if content:sub(1, 1) == content:sub(-1, -1) then + mark = content:sub(1, 1) content = content:sub(2, -2) end end @@ -571,6 +573,7 @@ local function parseString(parent) finish = getFinish(), parent = parent, [1] = content, + [2] = mark, } return str end -- cgit v1.2.3