cucumber/cucumber-jvm — pull request #303 by hauner (2012-04-21 10:38:27+00:00)
Title: fixed & simplified groovy step snippets

the generated groovy snippets do not work out of the box:

```groovy
When(~"^I run cucumber$") { -> ... }
```

Error: *Indentifier or code block expected, String end expected*

the `$` is a special character in groovy to embed an expression into a `GString`, ie. a double quoted string. To disable the groovy `$` it has to be escaped...

```groovy
When(~"^I run cucumber\$") { -> ... }
```

... or the string has to be quoted with single ticks (to make it a normal `String`) ...

```groovy
When(~'^I run cucumber$') { -> ... }
```

Which has the advantage that the `"` does not have to be escaped as well. So it is possible to simplify

```groovy
When(~"^I run cucumber with \"([^\"]*)\"\$") { String arg -> }
```

to:

```groovy
When(~'^I run cucumber with "([^"]*)"$') { String arg -> }
```

I think everyone agrees that this is a lot better.. :-)