Tweak HTML indents and highlights

This commit is contained in:
Max Brunsfeld 2022-08-30 17:23:09 -07:00
parent e4f5e85c3c
commit 21fb2b9bf1
5 changed files with 16 additions and 2 deletions

View file

@ -1631,6 +1631,8 @@ impl BufferSnapshot {
if capture.index == config.indent_capture_ix {
start.get_or_insert(Point::from_ts_point(capture.node.start_position()));
end.get_or_insert(Point::from_ts_point(capture.node.end_position()));
} else if Some(capture.index) == config.start_capture_ix {
start = Some(Point::from_ts_point(capture.node.end_position()));
} else if Some(capture.index) == config.end_capture_ix {
end = Some(Point::from_ts_point(capture.node.start_position()));
}