aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/text.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rdoc/text.rb b/lib/rdoc/text.rb
index 2fc47daa66..77318e46e4 100644
--- a/lib/rdoc/text.rb
+++ b/lib/rdoc/text.rb
@@ -240,6 +240,14 @@ module RDoc::Text
when s.scan(/''/) then # tick double quote
html << encoded[:close_dquote]
after_word = nil
+ when s.scan(/`/) then # backtick
+ if insquotes or after_word
+ html << '`'
+ after_word = false
+ else
+ html << encoded[:open_squote]
+ insquotes = true
+ end
when s.scan(/&#39;|'/) then # single quote
if insquotes
html << encoded[:close_squote]