From 5da710344392ac59a814b8841d31a562823737f0 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 21 Aug 2021 16:07:44 +0200 Subject: [PATCH] Tweak the comment-start-skip example in the manual * doc/emacs/programs.texi (Options for Comments): Tweak the example regexp for comment-start-skip (bug#15006). --- doc/emacs/programs.texi | 12 ++++++------ src/syntax.c | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index fe3ee57ac0a..09216c278b1 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi @@ -1098,13 +1098,13 @@ match the last comment before point in the buffer, and then does a expression that is the value of the variable @code{comment-start-skip}. Make sure this regexp does not match the null string. It may match more than the comment starting delimiter in the strictest sense of the word; -for example, in C mode the value of the variable is +for example, in C mode the value of the variable could be @c This stops M-q from breaking the line inside that @code. -@code{@w{"\\(//+\\|/\\*+\\)\\s *"}}, which matches extra stars and -spaces after the @samp{/*} itself, and accepts C++ style comments -also. (Note that @samp{\\} is needed in Lisp syntax to include a -@samp{\} in the string, which is needed to deny the first star its -special meaning in regexp syntax. @xref{Regexp Backslash}.) +@code{@w{"/\\*+[ \t]*\\|//+[ \t]*"}}, which matches extra stars and +spaces after the @samp{/*} itself, and accepts C++ style (@samp{//}) +comments also. (Note that @samp{\\} is needed in Lisp syntax to +include a @samp{\} in the string, which is needed to deny the first +star its special meaning in regexp syntax. @xref{Regexp Backslash}.) @vindex comment-start @vindex comment-end diff --git a/src/syntax.c b/src/syntax.c index 6cbe0f6855f..1ef4a712281 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -17,6 +17,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ +// foo #include -- 2.39.5