Function zed2::languages::trailing_whitespace_ranges
source · pub fn trailing_whitespace_ranges(rope: &Rope) -> Vec<Range<usize>, Global>
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.