Detect colon only when replacing an existing property name.

When replacing an existing property name, don't bother to move the cursor after the the space following a colon. The reason is that the space is in a separate token from the one that only has the colon. This fixes #7747.