From 9a3570a5b34794ff459356bc87a55bb41bf17715 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 4 Aug 2019 12:00:56 +0300 Subject: [PATCH] compiler: proper line numbers in debuggers (fixes regression after 207bab5). --- compiler/vfmt.v | 1 + 1 file changed, 1 insertion(+) 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