summaryrefslogtreecommitdiff
path: root/script/vm/infer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/infer.lua')
-rw-r--r--script/vm/infer.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index ef8c6f29..9db69b4d 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -135,6 +135,10 @@ local viewNodeSwitch = util.switch()
: call(function (source, infer)
return ('%q'):format(source[1])
end)
+ : case 'doc.type.code'
+ : call(function (source, infer)
+ return ('`%s`'):format(source[1])
+ end)
: case 'doc.type.function'
: call(function (source, infer, uri)
infer._hasDocFunction = true