[ruby-cvs:68678] k0kubun:r61497 (trunk): erb.rb: preserve the behavior for invalid syntax

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Wed Dec 27 21:40:03 JST 2017


k0kubun	2017-12-27 21:40:03 +0900 (Wed, 27 Dec 2017)

  New Revision: 61497

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

  Log:
    erb.rb: preserve the behavior for invalid syntax
    
    comment. Fix regression at r58948.
    
    I even don't want to deprecate it because deprecation needs to lex all
    embedded Ruby script using Ripper and it would be slow.  So Let me just
    keep this behavior of Ruby 2.4. No change is the best compatibility.
    
    This commit stopped using String#-@ because it's harmful for "ambiguous
    first argument" warning if we really want to maintain this behavior.
    
    [Bug #14243]

  Modified files:
    trunk/lib/erb.rb
    trunk/test/erb/test_erb.rb


More information about the ruby-cvs mailing list