summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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