[SVN] r7799 (Objective-C)
Gerd Knops
gerti-textmate at bitart.com
Wed Jul 25 17:10:26 UTC 2007
On Jul 24, 2007, at 9:58 PM, Joachim Mårtensson wrote:
> I have changed the find command that locates the .h files to index,
> it now
> ignore folders starting with a dot (thanks to Allan for providing
> better
> arguments to find). Hopefully that will speed things up a little.
>
Found the problem: The find also finds a couple of class templates in
my project directory, and they make the parser choke. Example:
---cut---
#import <Cocoa/Cocoa.h>
#import "~SuperClass~.h"
@interface ~Class~: ~SuperClass~
{
}
@end
---cut---
The above causes generateMethodList.rb to hang indefinitely.
BTW find should ignore all files with the pattern ._*.h as well as
any _darcs directory. This worked for me:
find "$TM_PROJECT_DIRECTORY" -type d \( -name _darcs \) -prune '!' -
prune -o -name '*.h' '!' -name '._*'
That extra "'!' -prune" is to make the expression false, otherwise
the _darcs directory name is printed. Oddly enough it is not required
when I try find through the command line, but if I run it fo example
using the 'Filter through command' textmate function, it is needed.
Gerd
More information about the textmate-dev
mailing list