Github can do better with word highlighting [0]. However, I checked a few of my own commits and this seems to be unreliable. I very rarely view diffs on Github, so I do not really care. Maybe someone who uses it more ca comment how good the word highlighting works.
[0] https://github.com/blog/1885-better-word-highlighting-in-dif...