-Improvements to the highlighter engine.

-Attempting to type or delete at the first index of the document no
longer breaks it.