- create a map of byte offsets to Kakoune ranges once, to avoid having to
iterate the content for every highlight event
- create a direct lookup for faces from the token index passed by the
highlighter event, rather than performing a string map lookup each time
- minimize allocations by pushing only a single string with sufficient
capacity, rather than building small strings