diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-07-08 18:12:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-07-08 18:12:00 +0800 |
commit | 011a5f1748da4d686a3cf34f22756e2f05968ebd (patch) | |
tree | fe0a7395b7faf8669b4951c3ae55b1f938f8bbbb /script/core | |
parent | 6e872740a641bd13f987fac4ee8f44793a58cbe7 (diff) | |
download | lua-language-server-011a5f1748da4d686a3cf34f22756e2f05968ebd.zip |
#189 hover不显示长字符串的内容
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/hover/hover.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/hover.lua b/script/core/hover/hover.lua index d94c73c2..932883fc 100644 --- a/script/core/hover/hover.lua +++ b/script/core/hover/hover.lua @@ -326,7 +326,7 @@ local function hoverAsString(source) end -- 内部包含转义符? local rawLen = source.finish - source.start - 2 * #source[2] + 1 - if rawLen > #str then + if (source[2] == '"' or source[2] == "'") and rawLen > #str then lines[#lines+1] = ([[ ------------------ |