diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-04 14:42:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-04 14:42:05 +0800 |
commit | f237cc6a46551c5297f011fa5502fbe2dbc8201c (patch) | |
tree | bbf6351dd5526ebf71f4d0a2b476efcc84027352 /script-beta | |
parent | a57f43a4a892f591bf2a6974a07be6c4b89dd161 (diff) | |
download | lua-language-server-f237cc6a46551c5297f011fa5502fbe2dbc8201c.zip |
修正一个判断 _ENV =nil 诊断的bug
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/parser/guide.lua | 4 | ||||
-rw-r--r-- | script-beta/vm/vm.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index a791dfb9..7e1bc278 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -25,7 +25,7 @@ local function logWarn(...) log.warn(...) end -local _ENV = nil +_ENV = nil local m = {} @@ -810,7 +810,7 @@ end ---@return table|nil pathB function m.getPath(a, b, sameFunction) --- 首先测试双方在同一个函数内 - if not sameFunction and m.getParentFunction(a) ~= m.getParentFunction(b) then + if sameFunction and m.getParentFunction(a) ~= m.getParentFunction(b) then return false end local mode diff --git a/script-beta/vm/vm.lua b/script-beta/vm/vm.lua index 91b27cdd..90f75b4a 100644 --- a/script-beta/vm/vm.lua +++ b/script-beta/vm/vm.lua @@ -14,7 +14,7 @@ local xpcall = xpcall local mathHuge = math.huge local collectgarbage = collectgarbage -local _ENV = nil +_ENV = nil ---@class vm local m = {} |