summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2021-11-08 15:10:01 +0300
committerGitHub <noreply@github.com>2021-11-08 13:10:01 +0100
commitb21eb1ed36aa068cc9b0a304742e4c81b5112304 (patch)
tree87893c2032b57e89eaea898617f861d35312de2b /compiler
parentb423ab138f41c24db3b168fd30f1ecce7850a170 (diff)
downloadNim-b21eb1ed36aa068cc9b0a304742e4c81b5112304.tar.gz
change os.nim doc links to new style (#19102)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/docgen.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index 2639840d1..7ba952083 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -954,6 +954,13 @@ proc toLangSymbol(k: TSymKind, n: PNode, baseName: string): LangSymbol =
         if kind != tkSpaces:
           result.generics.add(literal.nimIdentNormalize)
 
+  if k == skType:
+    case n[2].kind
+    of nkEnumTy: result.symTypeKind = "enum"
+    of nkObjectTy: result.symTypeKind = "object"
+    of nkTupleTy: result.symTypeKind = "tuple"
+    else: discard
+
 proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind, docFlags: DocFlags) =
   if (docFlags != kForceExport) and not isVisible(d, nameNode): return
   let