good morning!!!!

Skip to content
Snippets Groups Projects
Commit 8c9c1621 authored by Garet Halliday's avatar Garet Halliday
Browse files

fix position potentially off if rune is not ascii

parent 4da6747b
No related branches found
Tags v0.0.10
No related merge requests found
......@@ -175,7 +175,7 @@ func (L *Lexer) Next() (ctx TokenContext) {
for {
ctx.Position = L.pos
if L.useBuf {
ctx.Position -= 1
ctx.Position -= utf8.RuneLen(L.buf)
}
ctx.Token = L.next()
if ctx.Token == nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment