summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-09-09 20:42:02 +0200
committerAraq <rumpf_a@web.de>2016-09-09 20:42:02 +0200
commit3dfc86671005d033f6a7f3b68e0aeabeb1f4cfb9 (patch)
treeea250749d8b1b0ae4db6ad295a6143e1c6a96001 /compiler
parent3a3aeb94ecf2b0a0f91470719f5e22dc6ff475c6 (diff)
downloadNim-3dfc86671005d033f6a7f3b68e0aeabeb1f4cfb9.tar.gz
docgen: working search feature
Diffstat (limited to 'compiler')
-rw-r--r--compiler/typesrenderer.nim12
1 files changed, 3 insertions, 9 deletions
diff --git a/compiler/typesrenderer.nim b/compiler/typesrenderer.nim
index d050a86b2..438744b1c 100644
--- a/compiler/typesrenderer.nim
+++ b/compiler/typesrenderer.nim
@@ -19,20 +19,14 @@ proc renderPlainSymbolName*(n: PNode): string =
   ## for the HTML hyperlinks.
   result = ""
   case n.kind
-  of nkPostfix:
-    for i in 0 .. <n.len:
-      result = renderPlainSymbolName(n[<n.len])
-      if result.len > 0:
-        return
+  of nkPostfix, nkAccQuoted:
+    result = renderPlainSymbolName(n[<n.len])
   of nkIdent:
-    if n.ident.s != "*":
-      result = n.ident.s
+    result = n.ident.s
   of nkSym:
     result = n.sym.renderDefinitionName(noQuotes = true)
   of nkPragmaExpr:
     result = renderPlainSymbolName(n[0])
-  of nkAccQuoted:
-    result = renderPlainSymbolName(n[<n.len])
   else:
     internalError(n.info, "renderPlainSymbolName() with " & $n.kind)
   assert(not result.isNil)