Skip to content

Commit 96662c3

Browse files
committed
internal/lexer: use size instead of +1
1 parent e0e9d37 commit 96662c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/lexer/lexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (l *Lexer) step() {
8383
}
8484

8585
if cp == '\n' {
86-
l.source.Lines = append(l.source.Lines, l.pos+1)
86+
l.source.Lines = append(l.source.Lines, l.pos+size)
8787
}
8888

8989
l.ch = cp

0 commit comments

Comments
 (0)