summaryrefslogtreecommitdiffstats
path: root/lib
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
commit17ec92c59f6c5a6c30698b25e1e59f685e6dd4dc (patch)
tree16e35a013ed9cabe5af40bc3bbe480f3f1c85082 /lib
parent9fcee917a016d511591f6f969adc4847714050d6 (diff)
downloadruby-17ec92c59f6c5a6c30698b25e1e59f685e6dd4dc.tar.gz
ruby-17ec92c59f6c5a6c30698b25e1e59f685e6dd4dc.tar.xz
ruby-17ec92c59f6c5a6c30698b25e1e59f685e6dd4dc.zip
Allow aliases to have parentheses
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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