make regexp for rainbow-mode a bit more restrictive

Previously it would highlight #hex-id { ... } in css files, ie when
color codes are used as part of an id.