[TxMt] Re: Injection grammar to highlight conflict markers

Stefan Daschek stefan at daschek.net
Mon Feb 10 10:23:45 UTC 2014

>> […] It seems that in most source grammars other rules take precedence
>> (e.g. in Ruby “=======” has the scope
>> “keyword.operator.assignment.ruby”) and therefore the injection
>> grammar won’t get applied.
>> Is there any way to solve this?
> We abuse the “left scope match” syntax to indicate that we want the
> injected rules matched before the rules in the context they are being
> injected into.
> This means you should be able to make it work by using a scope selector
> of L:(source, text) or simply L:*

Works great, thanks!

If anyone is interested, the bundle is on GitHub:


More information about the textmate mailing list