Function language2::trailing_whitespace_ranges
source · pub fn trailing_whitespace_ranges(rope: &Rope) -> Vec<Range<usize>>
Expand description
Find all of the ranges of whitespace that occur at the ends of lines in the given rope.
This could also be done with a regex search, but this implementation avoids copying text.