summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/cli/doc.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/cli/doc.lua b/script/cli/doc.lua
index 7f7d38e3..7e7c8534 100644
--- a/script/cli/doc.lua
+++ b/script/cli/doc.lua
@@ -192,6 +192,10 @@ local function collectTypes(global, results)
if vm.isAsync(source, true) then
field.async = true
end
+ local depr = vm.getDeprecated(source)
+ if (depr and not depr.versions) then
+ field.deprecated = true
+ end
return
end
if source.type == 'tableindex' then
@@ -256,6 +260,10 @@ local function collectVars(global, results)
if vm.isAsync(set, true) then
result.defines[#result.defines].extends['async'] = true
end
+ local depr = vm.getDeprecated(set)
+ if (depr and not depr.versions) then
+ result.defines[#result.defines].extends['deprecated'] = true
+ end
end
end
if #result.defines == 0 then