fixed autopair curly braces in C mode