[ruby-cvs:66447] nobu:r59269 (trunk): lexer.rb: ignore dedented space

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Jul 6 13:12:51 JST 2017


nobu	2017-07-06 13:12:51 +0900 (Thu, 06 Jul 2017)

  New Revision: 59269

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

  Log:
    lexer.rb: ignore dedented space
    
    * ext/ripper/lib/ripper/lexer.rb (on_heredoc_dedent): replace an
      empty string content because of dedentation with :on_ignored_sp.
      an empty token makes the sorted order unstable.

  Modified files:
    trunk/ext/ripper/lib/ripper/lexer.rb
    trunk/test/ripper/test_lexer.rb


More information about the ruby-cvs mailing list