[TxMt] How to make variables take precedence over an included language? [Was: naming embedded (included) scopes ?]

Allan Odgaard throw-away-1 at macromates.com
Mon Apr 10 12:57:45 UTC 2006


On 10/4/2006, at 12:09, Daniel Käsmayr wrote:

>> You will then have to select this (duplicated and modified) HTML  
>> grammar for your cheetah files, instead of selecting cheetah.
> Would it not be better to create a “subclass” of the HTML language  
> grammar and just add the “embedded-code” rule as well as an include  
> of the original HTML grammar? [...]

If it was possible, yes.

But the embedded-code rule is a “repository” rule which is included  
by a lot of other HTML rules, e.g. to allow embedded code in tag  
attribute values (strings), and similar.

So presently there is no way to override it, other than actually edit  
the grammar.




More information about the textmate mailing list