fixed line indexing

This commit is contained in:
milarin 2023-03-18 23:08:33 +01:00
parent 31f5aa6e52
commit 9d4da8ef95

View File

@ -18,7 +18,7 @@ func New(r io.Reader) *Reader {
return &Reader{ return &Reader{
buf: ds.NewArrayStack[posRune](), buf: ds.NewArrayStack[posRune](),
src: bufio.NewReader(r), src: bufio.NewReader(r),
pos: &Position{}, pos: &Position{Index: 0, Line: 1, Column: 0},
} }
} }