diff --git a/History.rdoc b/History.rdoc index deb8c77787..6a76722696 100644 --- a/History.rdoc +++ b/History.rdoc @@ -163,7 +163,7 @@ * Moved old DEVELOPERS file to CONTRIBUTING to match github conventions. * TomDoc output now has a "Returns" heading. Issue #234 by Brian Henderson * Metaprogrammed methods can now use the :args: directive in addition to the - :call-seq: directive. Issue #236 by Mike Moore. + \:call-seq: directive. Issue #236 by Mike Moore. * Sections can be linked to using "@" like labels. If a section and a label have the same name the section will be preferred. Issue #233 by Brian Henderson. diff --git a/doc/rdoc/markup_reference.rb b/doc/rdoc/markup_reference.rb index ee585b2497..6224e534bc 100644 --- a/doc/rdoc/markup_reference.rb +++ b/doc/rdoc/markup_reference.rb @@ -1245,7 +1245,7 @@ def dummy_instance_method(foo, bar); end; # # Here is the :call-seq: directive given for the method: # - # :call-seq: + # \:call-seq: # call_seq_directive(foo, bar) # Can be anything -> bar # Also anything more -> baz or bat diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb index d0d052a71e..e7d6df1e8c 100644 --- a/lib/rdoc/parser/ruby.rb +++ b/lib/rdoc/parser/ruby.rb @@ -120,7 +120,7 @@ # # :singleton-method: some_method! # # You can define arguments for metaprogrammed methods via either the -# :call-seq:, :arg: or :args: directives. +# \:call-seq:, :arg: or :args: directives. # # Additionally you can mark a method as an attribute by # using :attr:, :attr_reader:, :attr_writer: or :attr_accessor:. Just like @@ -1089,7 +1089,7 @@ def parse_constant_body container, constant, is_array_or_hash # :nodoc: ## # Generates an RDoc::Method or RDoc::Attr from +comment+ by looking for - # :method: or :attr: directives in +comment+. + # \:method: or :attr: directives in +comment+. def parse_comment container, tk, comment return parse_comment_tomdoc container, tk, comment if @markup == 'tomdoc'