From 9d4da8ef95cbbebad580f2d4f1685d79d4b444f1 Mon Sep 17 00:00:00 2001 From: milarin Date: Sat, 18 Mar 2023 23:08:33 +0100 Subject: [PATCH] fixed line indexing --- reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reader.go b/reader.go index aef8bcf..a973f5b 100644 --- a/reader.go +++ b/reader.go @@ -18,7 +18,7 @@ func New(r io.Reader) *Reader { return &Reader{ buf: ds.NewArrayStack[posRune](), src: bufio.NewReader(r), - pos: &Position{}, + pos: &Position{Index: 0, Line: 1, Column: 0}, } }