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