From be560332484c8893bec004f1250e48edcd4720e0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 9 Sep 2022 11:52:57 +0900 Subject: Move RDoc `--`/`++` directives to comments --- template/prelude.c.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'template') 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 -- cgit v1.2.1