docgen: do not render the ugly <//> operator; temporary hack until 0.20 has been released

This commit is contained in:
Araq
2019-05-29 10:23:29 +02:00
parent 8951680c05
commit 0f4446b861

View File

@@ -1135,7 +1135,10 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
put(g, tkSpaces, Space)
infixArgument(g, n, 2)
of nkPrefix:
gsub(g, n, 0)
if n.len > 0 and n[0].kind == nkIdent and n[0].ident.s == "<//>":
discard "XXX Remove this hack after 0.20 has been released!"
else:
gsub(g, n, 0)
if n.len > 1:
let opr = if n[0].kind == nkIdent: n[0].ident
elif n[0].kind == nkSym: n[0].sym.name