diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser.nim | 1 |
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 |