[TxMt] Re: including rules from another language's repository

Matthew Johnson musical.matthew at mac.com
Sun May 27 13:47:36 UTC 2012

> I am working on a language grammar.  I would like to include repository rules from a different language.  I have tried including the language itself at the top of my grammar and then including the rule in necessary place in my grammar but it does not appear to work.  I am hoping that there is a syntax for doing this and I just haven't discovered it yet.  If anyone can point me in the right direction I would appreciate it!

In case anyone else is wondering about this, I eventually answered my own question.  This is possible in TM2 using grammar#repo_rule like this:

{	include = 'source.objc#interface_innards'; },

More information about the textmate mailing list