difft::diff::sliders

Function drop_ignored_punctuation

Source
fn drop_ignored_punctuation<'a>(
    nodes: &[&'a Syntax<'a>],
    change_map: &mut ChangeMap<'a>,
)
Expand description

In lists whose contents end with an ignorable piece of punctuation, ensure that punctuation isn’t treated as novel.

This improves diff results on reformatting, where foo(x) and foo(x,) should be considered the same.