fixed column indexing
This commit is contained in:
parent
9d4da8ef95
commit
5897251193
@ -10,7 +10,7 @@ func (p *Position) Advance(rn rune) {
|
||||
p.Index++
|
||||
if rn == '\n' {
|
||||
p.Line++
|
||||
p.Column = 0
|
||||
p.Column = 1
|
||||
} else {
|
||||
p.Column++
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user