Cucumber: Fix for Textmate syntax highlighting

It’s been bugging me for a while that a lot of the regular
expressions in my step matchers look ugly in TextMate because it
doesn’t recognise them.

I patched the Ruby tmbundle with a fix. If this bugs you too, you can
pull down my Ruby.tmbundle from here:

Or has somebody already solved this problem some other way?

cheers,
Matt

On Nov 14, 2008, at 3:25 pm, Matt W. wrote:

It’s been bugging me for a while that a lot of the regular
expressions in my step matchers look ugly in TextMate because it
doesn’t recognise them.

I patched the Ruby tmbundle with a fix. If this bugs you too, you
can pull down my Ruby.tmbundle from here:
GitHub - mattwynne/textmate-bundles: ~/Library/Application Support/TextMate/Bundles

Or has somebody already solved this problem some other way?

I’ve always stuck %r in front of the regex:

Given %r/blah/

But I’d prefer a better fix!

Ashley


http://www.patchspace.co.uk/

I’ve added Given/When/Then as valid methods to take regexp as an
argument to my Ruby.tmbundle, if its helpful (via bjeanes)

Commit:

Cheers
Nic

On Nov 15, 2:13 am, Ashley M. [email protected]