[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 5da7103 2/2: Tweak the comment-start-skip example in the manual
From: |
Lars Ingebrigtsen |
Subject: |
master 5da7103 2/2: Tweak the comment-start-skip example in the manual |
Date: |
Sat, 21 Aug 2021 10:08:42 -0400 (EDT) |
branch: master
commit 5da710344392ac59a814b8841d31a562823737f0
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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 fe3ee57..09216c2 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 6cbe0f6..1ef4a71 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 <https://www.gnu.org/licenses/>. */
+// foo
#include <config.h>