changeset 15597:ca84d7021f4e

(lisp-mode-variables): Set comment-start-skip to ignore backslash-quoted semicolons.
author Miles Bader <miles@gnu.org>
date Thu, 04 Jul 1996 05:45:50 +0000
parents 7d29420c2fec
children c5f04e0724ec
files lisp/emacs-lisp/lisp-mode.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp-mode.el	Thu Jul 04 05:45:38 1996 +0000
+++ b/lisp/emacs-lisp/lisp-mode.el	Thu Jul 04 05:45:50 1996 +0000
@@ -119,7 +119,9 @@
   (make-local-variable 'comment-start)
   (setq comment-start ";")
   (make-local-variable 'comment-start-skip)
-  (setq comment-start-skip ";+ *")
+  ;; Look within the line for a ; following an even number of backslashes
+  ;; after either a non-backslash or the line beginning.
+  (setq comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *")
   (make-local-variable 'comment-column)
   (setq comment-column 40)
   (make-local-variable 'comment-indent-function)