some protection against injected doc comments from templates
This commit is contained in:
parent
ca77f9388a
commit
769b562764
2 changed files with 12 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue