# Append a deletion to the diff.
#
# Parameters:
#
# * `buf`: buffer for the diff.
# * `log`: log that contains the deleted entry.
# * `entry_index`: index of the deleted entry in `log`.
# * `sorted_mismatches`: sorted list of indexes of the items to emphasize
# in the specified entry.
private fun diff_append_deletion(buf: Buffer, log: Array[Array[String]],
entry_index: Int, sorted_mismatches: Collection[Int]) do
buf.append(term_deletion)
buf.append("< {entry_index}|")
diff_append_mismatch_entry(buf, log[entry_index], sorted_mismatches,
term_deletion, term_deletion_emphasis)
buf.append(term_default)
buf.append("\n")
end
lib/saxophonit/testing.nit:181,2--198,4