pub fn highlight_end(slice: &[u8]) -> usize
Given a slice, find the index of the point at which highlighting should end.
Returns a value in the range [0, slice.len()].