From: Miles Bader Date: Thu, 4 Jul 1996 05:45:55 +0000 (+0000) Subject: (scheme-mode-variables): Set comment-start-skip to ignore backslash-quoted X-Git-Tag: emacs-19.34~264 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a24c42f7ffc04ce0d1cb2b3c27dd02fe69296390;p=emacs.git (scheme-mode-variables): Set comment-start-skip to ignore backslash-quoted semicolons. --- diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el index 6e385fd1ff6..a4393df8ee7 100644 --- a/lisp/progmodes/scheme.el +++ b/lisp/progmodes/scheme.el @@ -104,7 +104,9 @@ (make-local-variable 'comment-start) (setq comment-start ";") (make-local-variable 'comment-start-skip) - (setq comment-start-skip ";+[ \t]*") + ;; 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]\\)\\(\\\\\\\\\\)*\\);+[ \t]*") (make-local-variable 'comment-column) (setq comment-column 40) (make-local-variable 'comment-indent-function)