From 9ae6bd51c7e4b27a2be702bbc19a63a79fa639d1 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 21 May 2004 00:23:34 +0000 Subject: Add '()' around parameters that don't have them git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/rdoc/parsers/parse_rb.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 854673581..d0bb25961 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri May 21 09:22:05 2004 Dave Thomas + + * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method_parameters): + Add ()'s around parameters that don't have them + Fri May 21 02:21:11 2004 NAKAMURA, Hiroshi * lib/csv.rb: fixed a few bugs around multi char record/field separator. diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index ecc4455c2..8a23b6881 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -1986,6 +1986,7 @@ module RDoc def parse_method_parameters(method) res = parse_method_or_yield_parameters(method) + res = "(" + res + ")" unless res[0] == ?( method.params = res unless method.params if method.block_params.nil? skip_tkspace(false) -- cgit