bugfix: line information for comments

This commit is contained in:
Araq
2013-09-01 18:50:03 +02:00
parent a95c0608b9
commit f2b9af6ae1

View File

@@ -1411,7 +1411,6 @@ proc parseRoutine(p: var TParser, kind: TNodeKind): PNode =
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)