{ switch (msg) { case 1: break; case 2: break; case 3: break; default: break; } } In a C buffer, the indentatation of the same works as expected: