jayferd/rouge — pull request #42 by korny (2012-11-02 01:40:41+00:00)
Title: Fix unmatched close parenthesis in Perl Lexer

When running the tests in Ruby 2.0.0-preview1, I get:

```
/Users/murphy/ruby/rouge/lib/rouge/lexers/perl.rb:58:
unmatched close parenthesis: /\((\\\\|\\)|[^)])*)[egimosx]*/ (SyntaxError)
```

Reason seems to be that `\)` inside a `%r(…)` is being sent as just `)` to the Regexp interpreter.

This patch fixes it. Should be an error in other Ruby versions, too IMO.