fn token_length_at(source: &str, offset: usize) -> usize
Compute the byte length of the token at the given offset for span highlighting.