handle reversed highlight groups.