diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-03 10:38:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-03 10:38:11 +0800 |
commit | 5c566b1c4124b256bac2fbfe99444533350115de (patch) | |
tree | 934d98836a0328e16dfaa30f030af3ce62ed0e12 /script-beta/parser | |
parent | 0237e54f0ac5a4a4ee94c1f5bebdf69e88e46c7e (diff) | |
download | lua-language-server-5c566b1c4124b256bac2fbfe99444533350115de.zip |
ast 需要反向引用 state 以免被意外释放。
Diffstat (limited to 'script-beta/parser')
-rw-r--r-- | script-beta/parser/compile.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script-beta/parser/compile.lua b/script-beta/parser/compile.lua index 4d765262..f2a78c28 100644 --- a/script-beta/parser/compile.lua +++ b/script-beta/parser/compile.lua @@ -539,6 +539,7 @@ return function (self, lua, mode, version, options) LocalCount = 0 Version = version Root = state.ast + Root.state = state Options = options state.ENVMode = ENVMode if type(state.ast) == 'table' then |