mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser#get_tk): added
support of :'string' style Symbol. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4f34c296da
commit
63b7978625
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Feb 2 17:13:01 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser#get_tk): added
|
||||
support of :'string' style Symbol.
|
||||
|
||||
Thu Feb 2 14:45:53 2006 Ville Mattila <ville.mattila@stonesoft.com>
|
||||
|
||||
* configure.in: The isinf is not regognized by autoconf
|
||||
|
|
|
@ -1471,8 +1471,12 @@ module RDoc
|
|||
if tk.kind_of?(TkSYMBEG)
|
||||
set_token_position(tk.line_no, tk.char_no)
|
||||
tk1 = get_tk
|
||||
if tk1.kind_of?(TkId) || tk1.kind_of?(TkOp)
|
||||
if tk1.kind_of?(TkId) || tk1.kind_of?(TkOp) || tk1.kind_of?(TkSTRING)
|
||||
if tk1.respond_to?(:name)
|
||||
tk = Token(TkSYMBOL).set_text(":" + tk1.name)
|
||||
else
|
||||
tk = Token(TkSYMBOL).set_text(":" + tk1.text)
|
||||
end
|
||||
# remove the identifier we just read (we're about to
|
||||
# replace it with a symbol)
|
||||
@token_listeners.each do |obj|
|
||||
|
|
Loading…
Reference in a new issue