summaryrefslogtreecommitdiff
path: root/script/parser/compile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-11 20:34:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-11 20:34:02 +0800
commit8f056d36ec61dd91cfab282780dc1786df646fcb (patch)
treee81ec976ad922c4bc74dedf29548f2a7c322f68e /script/parser/compile.lua
parent3820962ca2d23d525bc8417c8088e7eeb667cba1 (diff)
downloadlua-language-server-8f056d36ec61dd91cfab282780dc1786df646fcb.zip
Revert "resolve #1209"
This reverts commit 3820962ca2d23d525bc8417c8088e7eeb667cba1.
Diffstat (limited to 'script/parser/compile.lua')
-rw-r--r--script/parser/compile.lua11
1 files changed, 1 insertions, 10 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua
index e396cb21..bae1e21a 100644
--- a/script/parser/compile.lua
+++ b/script/parser/compile.lua
@@ -2834,16 +2834,7 @@ local function compileExpAsAction(exp)
pushActionIntoCurrentChunk(exp)
if GetToSetMap[exp.type] then
skipSpace()
- local isLocal
- if exp.type == 'getlocal' and exp[1] == State.ENVMode then
- exp.special = nil
- local loc = createLocal(exp, parseLocalAttrs())
- loc.locPos = exp.start
- loc.effect = maxinteger
- isLocal = true
- skipSpace()
- end
- local action, isSet = parseMultiVars(exp, parseExp, isLocal)
+ local action, isSet = parseMultiVars(exp, parseExp)
if isSet
or action.type == 'getmethod' then
return action