I’ve not done this, but I know the pain.

You say specifically that you want a first line rule, but perhaps setting something like this in your .tm_properties file(s) would suffice?


[ *.rb~*_spec.rb ]
fileType = source.ruby.rails

From: http://lists.macromates.com/textmate/2014-October/037983.html

There’s also this document https://gist.github.com/dvessel/1478685 about .tm_properties which might help you understand.

I hope thats helpful!

Graham P Heath


On May 7, 2015 at 4:22:34 PM, Tom Smyth (tom@sassafras.coop) wrote:

This document doesn't quite seem right anymore:


I checked my manual bindings and ruby is not in there, yet my RSpec first line match isn't working.

Does anyone know how to fix this for version 2?

Thanks


--
Tom Smyth

Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change 
sassafras.coop · @sassafrastech

Resident, Touchstone Cohousing

_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate