summaryrefslogtreecommitdiff
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
parent72c65d9d018578cd1d1fda0439c977561909f74a (diff)
downloadlua-language-server-4634aeb159e395330f90b0e1bf2f8da8762c2a1d.zip
#18 Document Color 加入TODO套餐
-rw-r--r--README.md1
-rw-r--r--server/src/utility.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0bd6ae98..4a82c7f5 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,7 @@
- [x] Code Action
- [ ] Multi Workspace
- [ ] Type Format
+- [ ] Document Color
## Preview
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