Expand description
Calculate which nearby lines should also be displayed.
FunctionsΒ§
- add_
context π - add_
ends πExtendmatched_linesto include the leading and trailing lines in the file. - after_
with_ πopposites Before: 120 β (novel) 121 β 122 β - all_
lines π - all_
matched_ πlines - Before:
- compact_
gaps πBefore: - ensure_
contiguous πEnsure that we donβt miss any intermediate values. - flip_
tuple π - flip_
tuples π - match_
blanks_ πbefore - match_
blanks_ πbetween If the lines immediately beforecurrentare blank on both sides, return the line numbers of those blank lines. - For every line number pair, if there are blank lines preceding the pair, add those blank lines to the vec.
- opposite_
positions π - pad_
after π - pad_
before π