mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 04:57:49 +00:00
docgen: do not render the ugly <//> operator; temporary hack until 0.20 has been released
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user