some protection against injected doc comments from templates

This commit is contained in:
Araq 2018-09-08 10:45:51 +02:00
commit 769b562764
2 changed files with 12 additions and 7 deletions

View file

@ -49,7 +49,7 @@ proc processNode(c: PPassContext, n: PNode): PNode =
result = n
var g = PGen(c)
if shouldProcess(g):
generateDoc(g.doc, n)
generateDoc(g.doc, n, n)
proc processNodeJson(c: PPassContext, n: PNode): PNode =
result = n