[TxMt] C indentation prbs

Pavan Gunupudi pavan at doe.carleton.ca
Fri Jun 8 01:55:14 UTC 2007


The following pieces of code are indented incorrectly by "Indent  
Selection" - ⌥⌘[ . Any fixes?

Prb 1:

/*
This comment causes the problem in the indentation of the function  
statement below. I guess since it does not end with a semi-colon the  
following line gets indented.
*/

     void abc()
{
     if (xyz)
     {

     }
}

Prb 2:

void abc()
{ /* If this comment is removed, indentation is okay.*/
     if (xyz)
{

}
}





More information about the textmate mailing list