summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-05 23:02:50 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-05 23:02:50 +0000
commit2c32f0f918ab3959dbe1c5644edb7a4723699834 (patch)
tree8c01eb6de3006b601a996286ac6c98498b6e71b5 /lib/rdoc
parente5c787463e6a07fb650b34be06966899d3177a77 (diff)
Allow for colons in DOS file names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/usage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/usage.rb b/lib/rdoc/usage.rb
index da6593d89e..3e64cd6433 100644
--- a/lib/rdoc/usage.rb
+++ b/lib/rdoc/usage.rb
@@ -96,7 +96,7 @@ module RDoc
# Display usage
def RDoc.usage_no_exit(*args)
- main_program_file, = caller[-1].split(/:/, 2)
+ main_program_file, = caller[-1].split(/:\d+/, 2)
comment = File.open(main_program_file) do |file|
find_comment(file)
end