[TxMt] Injection grammar to highlight conflict markers

Stefan Daschek stefan at daschek.net
Fri Feb 7 11:34:55 UTC 2014


I’d like to highlight conflict markers (“<<<<<<< HEAD”, “=======”, …) 
across all file types.

I created a small bundle with an injection grammar for this, but it only 
works correctly for plain text. 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?


Stefan


More information about the textmate mailing list