Difftastic is an experimental structured diff tool that compares files based on their syntax.
Difftastic supports over 20 programming languages. If a file has an unrecognised extension, difftastic uses a textual diff with word highlighting.
Difftastic output is intended for human consumption, and it does not generate patches that you can apply later. Use diff if you need a patch.