mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
26a9bf756b
commit
4790c08906
27 changed files with 1670 additions and 385 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue