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/parser/guide.lua | |
parent | a57f43a4a892f591bf2a6974a07be6c4b89dd161 (diff) | |
download | lua-language-server-f237cc6a46551c5297f011fa5502fbe2dbc8201c.zip |
修正一个判断 _ENV =nil 诊断的bug
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r-- | script-beta/parser/guide.lua | 4 |
1 files changed, 2 insertions, 2 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 |