Reindent (was: [SVN] Revision 2002 (Source))

Allan Odgaard throw-away-1 at macromates.com
Mon Oct 24 21:25:39 UTC 2005


On 24/10/2005, at 20.35, Sune Foldager wrote:

> Reindent, new features: [...]

Here's what works very well for me (obj-c++):

    reindent.rb -i '\{(?!.*\})' -d '^\s*\}[;\s]*$' -n '^(?!.*;\s*//).* 
[^\s;{}]\s*$' -t --skip-line '^\s*((/\*|\*/|//|#|@interface| 
@implementation|@end).*)?$'

Placing the command in the source bundle will automatically have  
Support/bin in the path, although the script seems to not be  
executable (and each svn up removes the x bit).




More information about the textmate-dev mailing list