diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-10 20:11:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-10 20:11:36 +0800 |
commit | 38a2b7f9df15b8737ba6fba27861eba50b2277b6 (patch) | |
tree | 5c48cf092b813837801b8ff09e52f99e392fbe84 /script/parser | |
parent | c5170054e2873592c3967d440cb4debb42a09324 (diff) | |
download | lua-language-server-38a2b7f9df15b8737ba6fba27861eba50b2277b6.zip |
update
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/luadoc.lua | 7 |
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(), |