So it turns out I've been adding a bonus level of indentation before each scope closing }, cuz I'm an idiot. I removed all of those. I also turned the debug boxes off by default.