bugfix: line information for comments
This commit is contained in:
parent
a95c0608b9
commit
f2b9af6ae1
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue