diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-16 15:35:18 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-16 15:35:18 +0800 |
commit | b3a94c59e0e6454d1b978ed541e8d7ccb855c3a7 (patch) | |
tree | e60ece4d38a388a250e3a40d16c9facb0039fdb3 /server/src | |
parent | 4d55cca4a73e9cb3a072562ecbd89ebf6c172c0b (diff) | |
download | lua-language-server-b3a94c59e0e6454d1b978ed541e8d7ccb855c3a7.zip |
修改 relabel,不再根据 Lua 版本执行不同的代码
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/parser/relabel.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/src/parser/relabel.lua b/server/src/parser/relabel.lua index bc832017..ac902403 100644 --- a/server/src/parser/relabel.lua +++ b/server/src/parser/relabel.lua @@ -19,8 +19,7 @@ local mt = getmetatable(mm.P(0)) -- No more global accesses after this point -local version = _VERSION -if version == "Lua 5.2" then _ENV = nil end +_ENV = nil local any = m.P(1) @@ -359,6 +358,4 @@ local re = { calcline = calcline } -if version == "Lua 5.1" then _G.re = re end - return re |