diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-12 17:50:10 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-12 17:50:10 +0800 |
commit | 4634aeb159e395330f90b0e1bf2f8da8762c2a1d (patch) | |
tree | a5be724e1d6549488abbaadbab7c4e7bfcb3c0f6 | |
parent | 72c65d9d018578cd1d1fda0439c977561909f74a (diff) | |
download | lua-language-server-4634aeb159e395330f90b0e1bf2f8da8762c2a1d.zip |
#18 Document Color 加入TODO套餐
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | server/src/utility.lua | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 |