summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-02 02:17:03 +0200
committerAraq <rumpf_a@web.de>2013-05-02 02:17:03 +0200
commit8e5d6834cc51062a9d249fd7730432d32b7f6adc (patch)
treeb138f698c34b02ebfd609b6baf68834b9d02a9ee /compiler
parentcc591cf3c1c2be469f1cae8a45f99d55d8bda81f (diff)
downloadNim-8e5d6834cc51062a9d249fd7730432d32b7f6adc.tar.gz
new parser works with docgen
Diffstat (limited to 'compiler')
-rw-r--r--compiler/parser.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index 1aaff3616..4a3377681 100644
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -1408,6 +1408,7 @@ proc newCommentStmt(p: var TParser): PNode =
   #| commentStmt = COMMENT
   result = newNodeP(nkCommentStmt, p)
   result.info.line = result.info.line - int16(1) - int16(p.tok.iNumber)
+  result.comment = p.tok.literal
   getTok(p)
 
 type