mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge from HEAD.
Add --system, --site, --home, --gems to ri. Allow --doc-dir to be specified multiple times. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74831046c7
commit
4e23c46ff4
11 changed files with 158 additions and 85 deletions
|
@ -183,7 +183,7 @@ module SM
|
|||
unless SPECIAL.empty?
|
||||
SPECIAL.each do |regexp, attr|
|
||||
str.scan(regexp) do
|
||||
attrs.set_attrs($`.length, $1.length, attr | Attribute::SPECIAL)
|
||||
attrs.set_attrs($`.length, $&.length, attr | Attribute::SPECIAL)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -215,6 +215,8 @@ module SM
|
|||
add_html("b", :BOLD)
|
||||
add_html("tt", :TT)
|
||||
add_html("code", :TT)
|
||||
|
||||
add_special(/<!--(.*?)-->/, :COMMENT)
|
||||
end
|
||||
|
||||
def add_word_pair(start, stop, name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue