diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-29 21:36:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-29 21:36:02 +0800 |
commit | 1aff4a30c4c2cebba241fbff442eacb6e98ac328 (patch) | |
tree | 89c292b31bfa987d87e81afd4bdd99440edca84b /script-beta/core/diagnostics | |
parent | 2620918840cb28fdd641fa986367ad9e8175a730 (diff) | |
download | lua-language-server-1aff4a30c4c2cebba241fbff442eacb6e98ac328.zip |
暂时支持 lightuserdata
Diffstat (limited to 'script-beta/core/diagnostics')
-rw-r--r-- | script-beta/core/diagnostics/undefined-doc-class.lua | 25 | ||||
-rw-r--r-- | script-beta/core/diagnostics/undefined-doc-name.lua | 25 |
2 files changed, 26 insertions, 24 deletions
diff --git a/script-beta/core/diagnostics/undefined-doc-class.lua b/script-beta/core/diagnostics/undefined-doc-class.lua index 1fc19259..e008c7fd 100644 --- a/script-beta/core/diagnostics/undefined-doc-class.lua +++ b/script-beta/core/diagnostics/undefined-doc-class.lua @@ -6,18 +6,19 @@ local vm = require 'vm' -- TODO local builtin = { - ['any'] = true, - ['nil'] = true, - ['void'] = true, - ['boolean'] = true, - ['number'] = true, - ['integer'] = true, - ['thread'] = true, - ['table'] = true, - ['file'] = true, - ['string'] = true, - ['userdata'] = true, - ['function'] = true, + ['any'] = true, + ['nil'] = true, + ['void'] = true, + ['boolean'] = true, + ['number'] = true, + ['integer'] = true, + ['thread'] = true, + ['table'] = true, + ['file'] = true, + ['string'] = true, + ['userdata'] = true, + ['lightuserdata'] = true, + ['function'] = true, } return function (uri, callback) diff --git a/script-beta/core/diagnostics/undefined-doc-name.lua b/script-beta/core/diagnostics/undefined-doc-name.lua index 6a60fe65..8e832a2d 100644 --- a/script-beta/core/diagnostics/undefined-doc-name.lua +++ b/script-beta/core/diagnostics/undefined-doc-name.lua @@ -6,18 +6,19 @@ local vm = require 'vm' -- TODO local builtin = { - ['any'] = true, - ['nil'] = true, - ['void'] = true, - ['boolean'] = true, - ['number'] = true, - ['integer'] = true, - ['thread'] = true, - ['table'] = true, - ['file'] = true, - ['string'] = true, - ['userdata'] = true, - ['function'] = true, + ['any'] = true, + ['nil'] = true, + ['void'] = true, + ['boolean'] = true, + ['number'] = true, + ['integer'] = true, + ['thread'] = true, + ['table'] = true, + ['file'] = true, + ['string'] = true, + ['userdata'] = true, + ['lightuserdata'] = true, + ['function'] = true, } return function (uri, callback) |