It's how diff works. There may be ways to tweak diff matching, but I don't know exactly how to achieve this.