diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-14 18:46:14 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-14 18:46:14 +0800 |
commit | 95649b638444a7f18d374cb06ca79b9bafebf538 (patch) | |
tree | b6f7b4aac6fcc4be2d6b6b2f73824a9dd4e470ee /script-beta | |
parent | 7e7b526a4ec90bd9ba0c1e3a7663abb83ab157fc (diff) | |
download | lua-language-server-95649b638444a7f18d374cb06ca79b9bafebf538.zip |
修正bug
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/parser/guide.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index 283ed472..947d21c6 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -1430,9 +1430,10 @@ function m.checkSameSimpleAsSetValue(status, ref, start, queue) end function m.checkSameSimple(status, simple, data, mode, results, queue) - local ref = data.obj - local start = data.start - local force = data.force + local ref = data.obj + local start = data.start + local force = data.force + local isCall = data.call for i = start, #simple do local sm = simple[i] if sm ~= '*' and not force and m.getSimpleName(ref) ~= sm then @@ -1468,6 +1469,7 @@ function m.checkSameSimple(status, simple, data, mode, results, queue) if not ref then return end + isCall = false end if mode == 'def' then if ref.type == 'setglobal' @@ -1487,7 +1489,7 @@ function m.checkSameSimple(status, simple, data, mode, results, queue) results[#results+1] = ref end end - if data.call then + if isCall then results[#results+1] = ref end elseif mode == 'ref' then @@ -1516,7 +1518,7 @@ function m.checkSameSimple(status, simple, data, mode, results, queue) results[#results+1] = ref end end - if data.call then + if isCall then results[#results+1] = ref end elseif mode == 'field' then |