diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-10 21:09:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-10 21:09:31 +0800 |
commit | 9dd7926771b7b6ad93b919746954bb68bde351a9 (patch) | |
tree | 403367b8864daf53d29f9cc4e7c0e71486c58a28 /script-beta/utility.lua | |
parent | e87c7b5567053de3d94f06c823a0d0962756b237 (diff) | |
download | lua-language-server-9dd7926771b7b6ad93b919746954bb68bde351a9.zip |
更新完成
Diffstat (limited to 'script-beta/utility.lua')
-rw-r--r-- | script-beta/utility.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/script-beta/utility.lua b/script-beta/utility.lua index 9eaeb955..dfc7f510 100644 --- a/script-beta/utility.lua +++ b/script-beta/utility.lua @@ -420,9 +420,6 @@ function m.viewString(str, quo) end) return quo .. str:gsub([=[["\r\n]]=], esc) .. quo else - if str:find '\r' then - return m.viewString(str) - end local eqnum = #quo - 2 local fsymb = ']' .. ('='):rep(eqnum) .. ']' if not str:find(fsymb, 1, true) then @@ -437,7 +434,7 @@ function m.viewString(str, quo) return ssymb .. str .. fsymb end end - return m.viewString(str) + return m.viewString(str, '"') end end |