summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-11-14 16:23:36 +0900
committergit <[email protected]>2023-11-14 07:59:56 +0000
commit99355122753c4f2ac002fb55e0b31924e0e1cee4 (patch)
treee0c6d1330b98eeee356271bbf332b696938222c7 /lib/rdoc
parent50e1c293b780e70f333bee9ded27e11a2a2e0606 (diff)
[ruby/rdoc] Fix TIDYLINK after braces
(https://github.com/ruby/rdoc/pull/1015) TIDYLINK multi-word label should not include braces. https://github.com/ruby/rdoc/commit/41ad3191e9
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/markup/formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/markup/formatter.rb b/lib/rdoc/markup/formatter.rb
index 37a2c2751a..9daffaabb8 100644
--- a/lib/rdoc/markup/formatter.rb
+++ b/lib/rdoc/markup/formatter.rb
@@ -90,7 +90,7 @@ class RDoc::Markup::Formatter
def add_regexp_handling_TIDYLINK
@markup.add_regexp_handling(/(?:
- \{.*?\} | # multi-word label
+ \{[^{}]*\} | # multi-word label
\b[^\s{}]+? # single-word label
)