cucumber-attic / cucumber-tmbundle

TextMate bundle for Cucumber
http://www.benmabey.com
MIT License
204 stars 54 forks source link

Step colors get broken #14

Closed volkanunsal closed 13 years ago

volkanunsal commented 13 years ago

In my step definitions, the color highlighting get broken due to the second double quote in this

"([^"]*)"

I copied the definition from the terminal. And when I replace the double quotes around that with single quotes to "fix" them, then cucumber complains that I haven't implemented that step yet.

aslakhellesoy commented 13 years ago

That's a Textmate bug my friend. The plugin doesn't have any code for highlighting ruby stepdefs, only gherkin.

volkanunsal commented 13 years ago

Is it possible to emit "(.*?)" instead?

aslakhellesoy commented 13 years ago

I won't make Cucumber suggest different snippets just because one editor is buggy. If the broken colours bother you you can change the regexp to anything TextMate and Cucumber understands.

Try to put a backslash in front of the 2nd slash: "([^\"])" Or just: "(.)"