[TxMt] Perl indentation question

Allan Odgaard throw-away-1 at macromates.com
Fri May 11 09:47:20 UTC 2007


On 11. May 2007, at 11:45, André Cruz wrote:

> On 2007/05/11, at 10:20, Allan Odgaard wrote:
>> The indentation system is explained here: http://macromates.com/ 
>> textmate/manual/appendix#indentation_rules
>>
>> Updating the Perl patterns to those of C would at least fix your  
>> reported problem, but might introduce others.
>>
>> I’ll gladly help some Perl programmer adjust the patterns to Perl,  
>> but I know too little Perl myself to do proper patterns for Perl  
>> indentation.
> I can see that the C scope has the Identation Rules preference  
> setting, but Perl does not.
> Where do the languages that don't have this defined get their  
> indentation rules?

In that case, they would inherit the default patterns likely in the  
Source bundle, and if there are none, TM has some hardcoded defaults.

Basically the defaults just increase/decrease indent when seeing  
brackets.




More information about the textmate mailing list