expose lineno too.
fix bug where errors appeared to span forever.