This version runs very slow
Previously, token spans beyond the visible range were printed at the start of the next line
- Further debug printing statements added
This reverts commit 5a558807.