[SVN] C bundle doesn't recognise multi-line function defintions

Rob Rix rix.rob at gmail.com
Thu Mar 9 03:46:11 UTC 2006


Might be worth testing it on a decently large source file to see how  
it behaves without the lookahead; my instinct is that it'll match  
stuff it shouldn't, although I've certainly been mistaken before (:

-- R

On 8-Mar-06, at 6:23 PM, Michael Sheets wrote:

>> void
>> brush_draw_brush (splotd * sp, GdkDrawable * drawable, GGobiData * d,
>>                   ggobid * gg)
>> {
>
> The reason is this line:
>
> \s*\( (?=[^)]*\)          # match "(" and use look-ahead for ")"
>
> It's looking ahead for the closing bracket I presume to make sure  
> it's a function, remove the look ahead and it should work. However  
> I bet the look ahead was added for a reason, I'll let someone who  
> knows C see if they know why ;)
> _______________________________________________
> textmate-dev mailing list
> textmate-dev at lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate-dev

______________________
Rob Rix, developer &c.




More information about the textmate-dev mailing list