diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 00:26:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 00:26:28 +0800 |
commit | d61853c9dc392eb60a4764c1e747be82a7e993bd (patch) | |
tree | fd61382e3f8e3fe7fb2b24c3ff800110882a86c0 /script-beta/parser/guide.lua | |
parent | 85768c4898cd29355e2a6d009cd68ff40ae7e404 (diff) | |
download | lua-language-server-d61853c9dc392eb60a4764c1e747be82a7e993bd.zip |
修正一个bug
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r-- | script-beta/parser/guide.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index c056bbe2..9ede7e0a 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -892,7 +892,9 @@ local function convertSimpleList(list) local simple = {} for i = #list, 1, -1 do local c = list[i] - if c.special == '_G' then + if c.special == '_G' + and c.type ~= 'getglobal' + and c.type ~= 'setglobal' then simple.global = list[i+1] or c else simple[#simple+1] = m.getSimpleName(c) |