summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-29 10:00:20 +0800
committersumneko <sumneko@hotmail.com>2019-05-29 10:00:20 +0800
commit200797454ab208ac1fbaa9d6766ad117b4243c22 (patch)
tree77cc7854532c86c7c8589f3e11e537c09cbd46dc
parentff19e2b6aa31b31eb9c8023c39546a0569670d1f (diff)
downloadlua-language-server-200797454ab208ac1fbaa9d6766ad117b4243c22.zip
修正函数的enum显示不正确的bug
-rw-r--r--server/src/core/hover/lib_function.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/hover/lib_function.lua b/server/src/core/hover/lib_function.lua
index 56e6e22f..3aa0cc5a 100644
--- a/server/src/core/hover/lib_function.lua
+++ b/server/src/core/hover/lib_function.lua
@@ -162,7 +162,7 @@ local function buildEnum(lib)
if enum.code then
strs[#strs+1] = tostring(enum.code)
else
- strs[#strs+1] = ('%q'):format(enum.enum)
+ strs[#strs+1] = tostring(enum.enum)
end
if enum.description then
strs[#strs+1] = ' -- ' .. enum.description