pub fn find_next_word_end(text: &Rope, cursor_byte: usize) -> usizeExpand description
Finds the end offset of the current word or next word moving forward from cursor_byte.
Behavior matches classic editor Ctrl + Right:
- If currently at a newline, advances past the newline.
- If currently at non-newline whitespace, skips forward across the whitespace.
- Identifies whether the current token is a word or punctuation sequence.
- Moves forward across consecutive characters of that same kind.
- Returns the ending byte offset of that token.