[ruby-cvs:63073] nagachika:r55908 (ruby_2_3): merge revision(s) 55562: [Backport #12454]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Tue Aug 16 04:24:47 JST 2016


nagachika	2016-08-16 04:24:47 +0900 (Tue, 16 Aug 2016)

  New Revision: 55908

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55908

  Log:
    merge revision(s) 55562: [Backport #12454]
    
    * regcomp.c (noname_disable_map): don't optimize out group 0
      Ruby's Regexp doesn't allow normal numbered groups if the regexp
      has named groups. On such case it optimizes out related NT_ENCLOSE.
      But even on the case it can use \g<0>.
      This fix not to remove NT_ENCLOSE whose regnum is 0.
      [ruby-core:75828] [Bug #12454]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/regcomp.c
    branches/ruby_2_3/test/ruby/test_regexp.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list