diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-16 22:11:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-16 22:11:23 +0800 |
commit | 12b087704082f6d2278c8eb06bd9ac3e7f014c1a (patch) | |
tree | 9ff1a55f036a0c125adf9eaf914c1324b236b3ad /script/parser/luadoc.lua | |
parent | fa518d4f9522b38aca9478ac494e9523cca475f3 (diff) | |
download | lua-language-server-12b087704082f6d2278c8eb06bd9ac3e7f014c1a.zip |
fix #1061
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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 |