[ruby-cvs:63104] usa:r55939 (ruby_2_2): merge revision(s) 55562: [Backport #12454]

usa at ruby-lang.org usa at ruby-lang.org
Tue Aug 16 20:58:41 JST 2016


usa	2016-08-16 20:58:41 +0900 (Tue, 16 Aug 2016)

  New Revision: 55939

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

  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_2/
  Modified files:
    branches/ruby_2_2/ChangeLog
    branches/ruby_2_2/regcomp.c
    branches/ruby_2_2/test/ruby/test_regexp.rb
    branches/ruby_2_2/version.h


More information about the ruby-cvs mailing list