diff options
author | Araq <rumpf_a@web.de> | 2016-09-09 20:42:02 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-09-09 20:42:02 +0200 |
commit | 3dfc86671005d033f6a7f3b68e0aeabeb1f4cfb9 (patch) | |
tree | ea250749d8b1b0ae4db6ad295a6143e1c6a96001 /compiler | |
parent | 3a3aeb94ecf2b0a0f91470719f5e22dc6ff475c6 (diff) | |
download | Nim-3dfc86671005d033f6a7f3b68e0aeabeb1f4cfb9.tar.gz |
docgen: working search feature
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/typesrenderer.nim | 12 |
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) |