From 4790c08906f296eea070c06933a5c2484b30584e Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 29 Aug 2017 11:52:50 +0000 Subject: Merge rdoc-6.0.0.beta1. This version fixed strange behavior of ruby code parser. We will list all of impromovement to Changelog when 6.0.0 releasing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/parser/ruby_tools.rb | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'lib/rdoc/parser/ruby_tools.rb') diff --git a/lib/rdoc/parser/ruby_tools.rb b/lib/rdoc/parser/ruby_tools.rb index bbca065b5e..e35b420f30 100644 --- a/lib/rdoc/parser/ruby_tools.rb +++ b/lib/rdoc/parser/ruby_tools.rb @@ -33,26 +33,6 @@ module RDoc::Parser::RubyTools tk = nil if TkEND_OF_SCRIPT === tk - if TkSYMBEG === tk then - set_token_position tk.line_no, tk.char_no - - case tk1 = get_tk - when TkId, TkOp, TkSTRING, TkDSTRING, TkSTAR, TkAMPER then - if tk1.respond_to?(:name) then - tk = Token(TkSYMBOL).set_text(":" + tk1.name) - else - tk = Token(TkSYMBOL).set_text(":" + tk1.text) - end - - # remove the identifier we just read to replace it with a symbol - @token_listeners.each do |obj| - obj.pop_token - end if @token_listeners - else - tk = tk1 - end - end - # inform any listeners of our shiny new token @token_listeners.each do |obj| obj.add_token(tk) -- cgit v1.2.3