improve whitespace highlighting

highlights trailing spaces, except when typing
and spaces before tabs