]> git.eshelyaron.com Git - emacs.git/commitdiff
(lisp-mode-variables): Set comment-start-skip to ignore backslash-quoted
authorMiles Bader <miles@gnu.org>
Thu, 4 Jul 1996 05:45:50 +0000 (05:45 +0000)
committerMiles Bader <miles@gnu.org>
Thu, 4 Jul 1996 05:45:50 +0000 (05:45 +0000)
semicolons.

lisp/emacs-lisp/lisp-mode.el

index 9879b9f5faecb68b48ad486da6d537252dfac838..541cbe6f445e1bf3388709316607c799566d7a94 100644 (file)
   (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)