diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-21 00:23:34 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-21 00:23:34 +0000 |
| commit | bb6a92bfa702f5c03285de878968162360805ba0 (patch) | |
| tree | 2ff4eab0cba3bf2538dc35edf720bea422b65cc6 /lib | |
| parent | 6d2d2a7e6ec87ed27344f90f713c27a2a525deea (diff) | |
| download | ruby-bb6a92bfa702f5c03285de878968162360805ba0.tar.gz ruby-bb6a92bfa702f5c03285de878968162360805ba0.tar.xz ruby-bb6a92bfa702f5c03285de878968162360805ba0.zip | |
Add '()' around parameters that don't have them
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
