It's really nothing special. I wrote the whole thing in, like, a single afternoon. If you're interested, here it is:
https://pastebin.com/V7UiWj1e
It's not really a general purpose diffing algorithm. It probably doesn't handle every corner case as it only does what I need it to do in the few places I actually need it.