fixes an off-by-one error for nimpretty

This commit is contained in:
Araq 2017-10-16 00:04:46 +02:00
commit c06f73b484

View file

@ -123,7 +123,7 @@ proc fillBaseLexer(L: var TBaseLexer, pos: int): int =
result = pos + 1 # nothing to do result = pos + 1 # nothing to do
else: else:
fillBuffer(L) fillBuffer(L)
L.offsetBase += pos L.offsetBase += pos + 1
L.bufpos = 0 L.bufpos = 0
result = 0 result = 0
L.lineStart = result L.lineStart = result