Tweak HTML indents and highlights
This commit is contained in:
parent
e4f5e85c3c
commit
21fb2b9bf1
5 changed files with 16 additions and 2 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue