diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-04 11:00:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-04 11:00:30 +0800 |
commit | da08423453d5b2e0c60fbee50b86ce1a7e03ba82 (patch) | |
tree | 21e2d138e09c275b9371ed996e9a680d97d3e889 /server-beta/src/parser/compile.lua | |
parent | a9af7f7bc869466da14ef2c4b7fb07ed589f7a09 (diff) | |
download | lua-language-server-da08423453d5b2e0c60fbee50b86ce1a7e03ba82.zip |
支持 uri
Diffstat (limited to 'server-beta/src/parser/compile.lua')
-rw-r--r-- | server-beta/src/parser/compile.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/server-beta/src/parser/compile.lua b/server-beta/src/parser/compile.lua index 51803753..9f92fb53 100644 --- a/server-beta/src/parser/compile.lua +++ b/server-beta/src/parser/compile.lua @@ -3,7 +3,7 @@ local type = type _ENV = nil -local pushError, Compile, CompileBlock, Cache, Block, GoToTag, Version, ENVMode, Compiled, ValueID +local pushError, Compile, CompileBlock, Block, GoToTag, ENVMode, Compiled local function addRef(node, obj) if not node.ref then @@ -425,21 +425,17 @@ return function (self, lua, mode, version) return nil, err end pushError = state.pushError - Version = version if version == 'Lua 5.1' or version == 'LuaJIT' then ENVMode = 'fenv' else ENVMode = '_ENV' end - Cache = {} Compiled = {} GoToTag = {} - ValueID = 0 if type(state.ast) == 'table' then Compile(state.ast) end PostCompile() - Cache = nil Compiled = nil GoToTag = nil return state |