Various bug fixes after more thorough testing.
Support for beginning from non-empty buffers/files.  The highlighter now has the bare minimum for usability.