summaryrefslogtreecommitdiffstats
path: root/lib/rdoc/parsers
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-01 03:26:05 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-01 03:26:05 +0000
commit4d0cb482e86ceeeb525940bae41c47c28971b562 (patch)
treec6fd1ac086a155dcd3f4c8df99664414fbef2abd /lib/rdoc/parsers
parent92785932d0320da07257ea0fb9f7b2c15044228c (diff)
downloadruby-4d0cb482e86ceeeb525940bae41c47c28971b562.tar.gz
ruby-4d0cb482e86ceeeb525940bae41c47c28971b562.tar.xz
ruby-4d0cb482e86ceeeb525940bae41c47c28971b562.zip
Allow aliases to have parentheses
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers')
-rw-r--r--lib/rdoc/parsers/parse_rb.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb
index f9b0a19cd..f7c5a32df 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