merges r29140 and r29141 from trunk into ruby_1_9_2.

--
* lib/rdoc/parser/ruby.rb (RDoc#parse_class): ignore non-constant
  name signleton class.  [Bug #3759], [ruby-dev:42154]
--
* lib/rdoc/parser/ruby.rb (RDoc#parse_call_parameters): don't
  include assignment.  [Bug #3759], [ruby-dev:42154]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@29568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2010-10-23 09:37:26 +00:00
parent 8ebcdf9ddf
commit 0d069bd2df
4 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,11 @@
Sun Aug 29 23:54:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rdoc/parser/ruby.rb (RDoc#parse_call_parameters): don't
include assignment. [Bug #3759], [ruby-dev:42154]
* lib/rdoc/parser/ruby.rb (RDoc#parse_class): ignore non-constant
name signleton class. [Bug #3759], [ruby-dev:42154]
Sat Sep 25 22:48:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (LIBRUBY_DLDFLAGS): fix quoting.

View file

@ -526,7 +526,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
else
break unless @scanner.continue
end
when TkCOMMENT
when TkCOMMENT, TkASSIGN, TkOPASGN
unget_tk(tk)
break
when nil then
@ -568,7 +568,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
case name = get_class_specification
when "self", container.name
parse_statements container, SINGLE
else
when /\A[A-Z]/
other = RDoc::TopLevel.find_class_named name
unless other then

View file

@ -429,6 +429,8 @@ end
class A
class << B
end
class << d = Object.new
end
end
CODE

View file

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
#define RUBY_PATCHLEVEL 21
#define RUBY_PATCHLEVEL 22
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1