Syntax highlighting of diffs feels like an under-researched field. Doing a good job on incomplete snippets is a hard problem.