mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-12 14:48:14 +00:00
bugfix: line information for comments
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user