diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-14 16:00:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-14 16:00:46 +0800 |
commit | 69d4e69c9d84a8a20a2eedf3bc0538ea2e3d019c (patch) | |
tree | 3be530ef02c93a54680cd7a01a9e6d1fdceb1bfd /script-beta/core/find-source.lua | |
parent | c1078551cecf99087a8a69485ebbc175406c563d (diff) | |
download | lua-language-server-69d4e69c9d84a8a20a2eedf3bc0538ea2e3d019c.zip |
修正无定位超长字符串的问题
Diffstat (limited to 'script-beta/core/find-source.lua')
-rw-r--r-- | script-beta/core/find-source.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/find-source.lua b/script-beta/core/find-source.lua index 2e42ca82..4788d539 100644 --- a/script-beta/core/find-source.lua +++ b/script-beta/core/find-source.lua @@ -1,7 +1,7 @@ local guide = require 'parser.guide' return function (ast, offset, accept) - local len = 999 + local len = math.huge local result guide.eachSourceContain(ast.ast, offset, function (source) if source.finish - source.start < len and accept[source.type] then |