diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-30 14:08:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-30 14:08:00 +0800 |
commit | 03b17aa9307b1c418e9bfa30545142b29ce8233d (patch) | |
tree | 9b583e26edecd275ad8a77c5ec5ccdcf2f9373d1 /script/vm/getDocs.lua | |
parent | e44142d13914bc98a4f9af0029cfadbc16e222a4 (diff) | |
download | lua-language-server-03b17aa9307b1c418e9bfa30545142b29ce8233d.zip |
cleanup
Diffstat (limited to 'script/vm/getDocs.lua')
-rw-r--r-- | script/vm/getDocs.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua index 0c6b1695..2fb2bda9 100644 --- a/script/vm/getDocs.lua +++ b/script/vm/getDocs.lua @@ -45,7 +45,7 @@ function vm.getDocDefines(name) end function vm.isDocDefined(name) - if define.BuiltinClass[name] then + if define.BuiltinType[name] then return true end local id = 'def:dn:' .. name @@ -55,6 +55,10 @@ function vm.isDocDefined(name) return false end +function vm.isBuiltinType(name) + return define.BuiltinType[name] == true +end + function vm.getDocEnums(doc) if not doc then return nil |