diff options
Diffstat (limited to 'compiler/parser.nim')
-rw-r--r-- | compiler/parser.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index 81adecac2..769aa7a3e 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -1207,9 +1207,9 @@ proc parseRoutine(p: var TParser, kind: TNodeKind): PNode = addSon(result, ast.emptyNode) indAndComment(p, result) # XXX: document this in the grammar! -proc newCommentStmt(p: var TParser): PNode = +proc newCommentStmt(p: var TParser): PNode = result = newNodeP(nkCommentStmt, p) - result.info.line = result.info.line - int16(1) + result.info.line = result.info.line - int16(1) - int16(p.tok.iNumber) type TDefParser = proc (p: var TParser): PNode {.nimcall.} |