Cucumber: Fix for Textmate syntax highlighting


#1

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


#2

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:
http://github.com/mattwynne/textmate-bundles/tree/master

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/


#3

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

http://github.com/drnic/ruby-tmbundle

Commit:
http://github.com/drnic/ruby-tmbundle/commit/2cff40d43dd65aad3d8cd050654823db6d7517cb

Cheers
Nic

On Nov 15, 2:13 am, Ashley M. removed_email_address@domain.invalid