diff --git a/compiler/vfmt.v b/compiler/vfmt.v index 8a6453efb1..7f2129607b 100644 --- a/compiler/vfmt.v +++ b/compiler/vfmt.v @@ -37,6 +37,7 @@ fn (p mut Parser) fgenln(s string) { fn (p mut Parser) peek() Token { for { + p.cgen.line = p.scanner.line_nr + 1 tok := p.scanner.peek() if tok != .nl { return tok