XCode autoindentation is usually terrible, but this seems more nonsensical than normal.  Are you sure it's right?