https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112012-12-23T17:52:13ZRuby Issue Tracking SystemRuby master - Bug #7610: Incompatible with percent literal regexp between 1.9.3 and 2.0.0https://bugs.ruby-lang.org/issues/7610?journal_id=350232012-12-23T17:52:13Zsanemat (Kenichi Murahashi)ogataken@gmail.com
<ul></ul><p>Percent literal regexp brings SyntaxError with parenthesis. If I use | as separator, then it works fine, but I use () as separator, then it does not work.</p>
<p>$ ruby -v<br>
ruby 2.0.0dev (2012-12-23 trunk 38571) [x86_64-darwin11.4.2]<br>
$ irb<br>
irb(main):001:0> %r((555)555-5555)<br>
SyntaxError: (irb):1: unmatched close parenthesis: /(555)555-5555</telephoneNumber>/<br>
from /Users/sane/.rbenv/versions/2.0.0-dev/bin/irb:12:in `'<br>
irb(main):003:0> %r|(555)555-5555|<br>
=> /(555)555-5555</telephoneNumber>/</p>
<p>$ ruby -v<br>
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin11.4.2]<br>
$ irb<br>
irb(main):001:0> %r((555)555-5555)<br>
=> /(555)555-5555</telephoneNumber>/<br>
irb(main):002:0> %r|(555)555-5555|<br>
=> /(555)555-5555</telephoneNumber>/</p> Ruby master - Bug #7610: Incompatible with percent literal regexp between 1.9.3 and 2.0.0https://bugs.ruby-lang.org/issues/7610?journal_id=351582012-12-30T23:33:40Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r38663.<br>
Kenichi, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>parse.y: escaped closing parenthsis</p>
<ul>
<li>parse.y (simple_re_meta): escaped closing parenthsis has different<br>
meaning. [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Incompatible with percent literal regexp between 1.9.3 and 2.0.0 (Closed)" href="https://bugs.ruby-lang.org/issues/7610">#7610</a>] <a href="/issues/7610">[ruby-core:51088]</a></li>
</ul> Ruby master - Bug #7610: Incompatible with percent literal regexp between 1.9.3 and 2.0.0https://bugs.ruby-lang.org/issues/7610?journal_id=351612012-12-31T08:09:31Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/35161/diff?detail_id=24893">diff</a>)</li></ul>