summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-12 17:50:10 +0800
committersumneko <sumneko@hotmail.com>2019-04-12 17:50:10 +0800
commit4634aeb159e395330f90b0e1bf2f8da8762c2a1d (patch)
treea5be724e1d6549488abbaadbab7c4e7bfcb3c0f6 /server
parent72c65d9d018578cd1d1fda0439c977561909f74a (diff)
downloadlua-language-server-4634aeb159e395330f90b0e1bf2f8da8762c2a1d.zip
#18 Document Color 加入TODO套餐
Diffstat (limited to 'server')
-rw-r--r--server/src/utility.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/utility.lua b/server/src/utility.lua
index c59fa2eb..34412a97 100644
--- a/server/src/utility.lua
+++ b/server/src/utility.lua
@@ -38,7 +38,7 @@ function table.dump(tbl)
local keys = {}
for key in pairs(tbl) do
if type(key) == 'string' then
- if key:find('[^%w_]') then
+ if key == '' or key:find('[^%w_]') then
KEY[key] = ('[%q]'):format(key)
else
KEY[key] = key