[TxMt] function prototype c

Charilaos Skiadas skiadas at hanover.edu
Sun Mar 4 00:59:14 UTC 2007


On Mar 3, 2007, at 7:40 PM, Juan wrote:
> 	Hi
> I have changed
> 	\s+
> by
> 	\s*
> in the (L)anguage grammar for to C recognize also "name(args)" and  
> not only "name (args)" as function prototype in C.
>
> I did easily the change in the C bundle, but my question es:
>
> 	is it the best way of changing an standard bundle?

If the change is one that should probably take place in the bundle  
anyway, then it is best to mention it to the maintainer of the  
bundle / this list, so that the official bundle can be changed  
accordingly. A diff of the file before and after would be  
particularly helpful in this case.

> 	if that bundle is updated in the future by the TM developers, will  
> it be updated in my system?

The syntax will not, since there is a local modification to it (see:  
http://blog.circlesixdesign.com/2007/03/02/textmate-bundles- 
explained/ ). But the rest of the bundle will be updated just fine.

To be precise, the syntax in the TextMate application itself will  
also be updated, but there will be another version of the file, the  
one with your changes, under ~/Library/Application Support/TextMate,  
and it will take precedence when TM looks for the syntax.

> Thanks

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College







More information about the textmate mailing list