diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-15 21:40:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-15 21:40:16 +0800 |
commit | 03444fe030383163b35fcd8c557bccd31aeebe5a (patch) | |
tree | 95caf81eb51f098ca6388e15bde5920cd2c6ce1f /script/parser/newparser.lua | |
parent | c3fc3c4631c8f69cb7250d8e2accd9ac0d8a0fb4 (diff) | |
download | lua-language-server-03444fe030383163b35fcd8c557bccd31aeebe5a.zip |
update
Diffstat (limited to 'script/parser/newparser.lua')
-rw-r--r-- | script/parser/newparser.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua index 9e8e5b94..0e12ab45 100644 --- a/script/parser/newparser.lua +++ b/script/parser/newparser.lua @@ -1905,6 +1905,9 @@ local function resolveName(node) loc.ref = {} end loc.ref[#loc.ref+1] = node + if loc.special then + addSpecial(loc.special, node) + end else node.type = 'getglobal' local env = getLocal(State.ENVMode, node.start) @@ -2517,6 +2520,9 @@ end local function bindValue(n, v, index, lastValue, isLocal, isSet) if isLocal then n.effect = lastRightPosition() + if v and v.special then + addSpecial(v.special, n) + end elseif isSet then n.type = GetToSetMap[n.type] or n.type if n.type == 'setlocal' then |