summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-09 11:52:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-09 14:23:39 +0900
commitbe560332484c8893bec004f1250e48edcd4720e0 (patch)
tree6c5bc112916396bdea2a971f66b050fbad60a584 /template
parent2dcaeb75ff0e0a2fbafc4df0df9d7be119235415 (diff)
downloadruby-be560332484c8893bec004f1250e48edcd4720e0.tar.gz
Move RDoc `--`/`++` directives to comments
Diffstat (limited to 'template')
-rw-r--r--template/prelude.c.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl
index 3d792867f3..ac748704ed 100644
--- a/template/prelude.c.tmpl
+++ b/template/prelude.c.tmpl
@@ -48,7 +48,7 @@ class Prelude
line.rstrip!
lineno += 1
@preludes[filename] ||= result
- comment = ($1 || '' if line.sub!(/(?:^|\s+)\#(?:$|[#\s](.*))/, ''))
+ comment = ($1 || '' if line.sub!(/(?:^|\s+)\#(?!\{)(?:$|(?:[#\s]|(?=\W))(.*))/, ''))
if !line.empty? or start_line
line << "\n"
start_line ||= lineno