[TxMt] Extending Markdown bundle (newbie)?

Allan Odgaard throw-away-2 at macromates.com
Mon Nov 5 22:20:40 UTC 2007

On 5 Nov 2007, at 06:50, Ramon M. Felciano @ Yahoo wrote:

> 1. How do you override or specialize certain syntactic patterns from  
> a base language? The language docs show how to use "include" to  
> reference a whole separate grammar, but I think what I'm looking for  
> is to override only a single grammar rule. In the above example,  
> should I copy the "unordered list" pattern from the Markdown plist  
> file and use a modified version in the new language file? Or is  
> there a way to "subclass" the syntax w/out this copy-paste model by  
> including only the one rule?

Include is presently the only way to “subclass”. So in your case you  
likely want to copy/paste.

> 2. Are there restrictions on the file suffixes for this new  
> language? Should the new language share the same file suffix  as the  
> original, or come up with a different one?

It would be good to pick a new file extension, so that the new  
language can be bound to that extension (and old files will still use  
the regular grammar).

More information about the textmate mailing list