You want diff to know the syntax and semantics of every programming language out there ?
Certainly the idea has been suggested many times. I think people end up formatting both before/after and doing a diff on formatted before against formatted after. I've done that.
All that, just to not have to add a trailing comma ?