Skip to content

Commit

Permalink
pass include_children = true to text_ranges in formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
usamoi committed Oct 11, 2024
1 parent db31b2b commit 1da3ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/taplo/src/formatter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ where
let matched = dom.find_all_matches(keys, false)?;

for (_, node) in matched {
s.extend(node.text_ranges(false).map(|r| (r, opts.clone())));
s.extend(node.text_ranges(true).map(|r| (r, opts.clone())));
}
}

Expand Down

0 comments on commit 1da3ccd

Please sign in to comment.