From 79aef1272e877b67b15b00a9cded806845556a0f Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 4 Jan 2019 09:49:32 +0000 Subject: [PATCH] [DOC] escape descriptions [ci skip] Escape descriptions not to get parsed as directives. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/.document | 1 + lib/rdoc/parser/c.rb | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/rdoc/.document b/lib/rdoc/.document index 41333c6411..6b5e1b21a5 100644 --- a/lib/rdoc/.document +++ b/lib/rdoc/.document @@ -1 +1,2 @@ *.rb +parser diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb index 43a5df9126..e2283088cc 100644 --- a/lib/rdoc/parser/c.rb +++ b/lib/rdoc/parser/c.rb @@ -69,15 +69,15 @@ require 'tsort' # [Document-variable: +name+] # Documentation for the named +rb_define_variable+ # -# [Document-method: +method_name+] +# [Document-method\: +method_name+] # Documentation for the named method. Use this when the method name is # unambiguous. # -# [Document-method: ClassName::method_name] +# [Document-method\: ClassName::method_name] # Documentation for a singleton method in the given class. Use this when # the method name alone is ambiguous. # -# [Document-method: ClassName#method_name] +# [Document-method\: ClassName#method_name] # Documentation for a instance method in the given class. Use this when the # method name alone is ambiguous. #