diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-08 17:38:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-08 17:38:44 +0800 |
commit | db4ae9c48b7d2f97823469e8a32aff170ecba12f (patch) | |
tree | d167f6430773ebd3fd93b31611b1ad98bec60aaa /script/vm | |
parent | 103aee69bf717936432e2739695305ce2058786e (diff) | |
download | lua-language-server-db4ae9c48b7d2f97823469e8a32aff170ecba12f.zip |
resolve #993 supports multi-types
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/global.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua index d1bd798f..fe798c0d 100644 --- a/script/vm/global.lua +++ b/script/vm/global.lua @@ -323,6 +323,9 @@ local compilerGlobalSwitch = util.switch() : call(function (source) local uri = guide.getUri(source) local name = source[1] + if name == '_' then + return + end local type = vm.declareGlobal('type', name, uri) type:addGet(uri, source) source._globalNode = type |