implements multi-line-comments; pounds are stripped from the doc comments

This commit is contained in:
Andreas Rumpf 2016-01-16 21:40:54 +01:00
commit 2e71bd50b2
7 changed files with 137 additions and 37 deletions

View file

@ -112,12 +112,7 @@ proc rawSkipComment(p: var TParser, node: PNode) =
if p.tok.tokType == tkComment:
if node != nil:
if node.comment == nil: node.comment = ""
if p.tok.literal == "[]":
node.flags.incl nfIsCursor
#echo "parser: "
#debug node
else:
add(node.comment, p.tok.literal)
add(node.comment, p.tok.literal)
else:
parMessage(p, errInternal, "skipComment")
getTok(p)