diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-15 20:47:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-15 20:47:58 +0800 |
commit | 9dc051dc1f6bf44a171816db5e3e5b454fc45a57 (patch) | |
tree | b912d15aeb66b9c463dc3f0180d122d3f3a48527 /script/vm | |
parent | fcc64b070a4c3cf0af7470ae8587080d336fed73 (diff) | |
download | lua-language-server-9dc051dc1f6bf44a171816db5e3e5b454fc45a57.zip |
improve
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/globals.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/globals.lua b/script/vm/globals.lua index 6a481bd1..cb759551 100644 --- a/script/vm/globals.lua +++ b/script/vm/globals.lua @@ -25,7 +25,8 @@ local function pushGlobals(uri) end local nodes = noder.compileNodes(state.ast) for id in pairs(nodes) do - if id:sub(1, 2) == 'g:' then + if id:sub(1, 2) == 'g:' + and noder.getFirstID(id) == id then if not globalsMap[id] then globalsMap[id] = {} end |