From b84917766d7adcb2fdf34d30d48f3d9c67565784 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 1 Mar 2004 03:26:05 +0000 Subject: [PATCH] Allow aliases to have parentheses git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/rdoc/parsers/parse_rb.rb | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4ff341ed43..2262eb1a31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 1 12:24:10 2004 Dave Thomas + + * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_alias): + Allow aliases to have parentheses + Sun Feb 29 23:14:53 2004 Dave Thomas * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class): diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index f9b0a19cd6..f7c5a32dfe 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -2311,6 +2311,10 @@ module RDoc def parse_alias(context, single, tk, comment) skip_tkspace + if (peek_tk.kind_of? TkLPAREN) + get_tk + skip_tkspace + end new_name = get_symbol_or_name @scanner.instance_eval{@lex_state = EXPR_FNAME} skip_tkspace