summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-04 05:45:50 +0000
committerMiles Bader <miles@gnu.org>1996-07-04 05:45:50 +0000
commite56a043b86ebe02e30e2eaf15639e9db6c1bfc9c (patch)
tree29c12d0303ddd493e7e8d080068e8113e8d93a19 /lisp/emacs-lisp
parent51a2264fb51c2d07fc0058edf6cba5202df64ed6 (diff)
downloademacs-e56a043b86ebe02e30e2eaf15639e9db6c1bfc9c.tar.gz
emacs-e56a043b86ebe02e30e2eaf15639e9db6c1bfc9c.tar.bz2
emacs-e56a043b86ebe02e30e2eaf15639e9db6c1bfc9c.zip
(lisp-mode-variables): Set comment-start-skip to ignore backslash-quoted
semicolons.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/lisp-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 9879b9f5fae..541cbe6f445 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -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)