For anyone else out there is being driven mad by the ridiculous way that SublimeText handles #if 0 .. #endif comments while auto-reindenting, I've messed around with C Improved, a neat little improvement over the default C syntax handling, and coaxed it into submission. I also added colouring for some of Casey's typedefs to make things a little bit more pretty.

Credit for C Improved goes to Eldar Abusalimov (@abusalimov). My horrific murdering of his code can be found here.