[TxMt] 'bug' in php bundle: indentation of elseif on same line as closing brace is wrong

Till Backhaus backhaus at 2myscreen.com
Fri Apr 11 12:31:35 UTC 2008


hi there,

while fixing indentation of a php-file using 'indent selection' i  
found that textmate is wrong in the following case:

if( condition ){
     code;
}elseif( condition ){
     code;
}

is indented like this:

if( condition ){
     code;
     }elseif( condition ){
         code;
     }

how to reproduce?
- enter the code above in an empty php-document
- select all
- indent selection

workaround:
put elseif on a new line

cheers
Till Backhaus





More information about the textmate mailing list