sc ide: sc code editor - improve token auto-pairing

When a closing token is typed, and the same one is already present just
behind the cursor, only move the cursor over the existing token instead
of inserting a new one.