diff options
| author | Miles Bader | 1996-07-04 05:45:55 +0000 |
|---|---|---|
| committer | Miles Bader | 1996-07-04 05:45:55 +0000 |
| commit | a24c42f7ffc04ce0d1cb2b3c27dd02fe69296390 (patch) | |
| tree | 2431c4266f74744e55f7a923dd5eb2e796b2224b | |
| parent | e56a043b86ebe02e30e2eaf15639e9db6c1bfc9c (diff) | |
| download | emacs-a24c42f7ffc04ce0d1cb2b3c27dd02fe69296390.tar.gz emacs-a24c42f7ffc04ce0d1cb2b3c27dd02fe69296390.zip | |
(scheme-mode-variables): Set comment-start-skip to ignore backslash-quoted
semicolons.
| -rw-r--r-- | lisp/progmodes/scheme.el | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
| 104 | (make-local-variable 'comment-start) | 104 | (make-local-variable 'comment-start) |
| 105 | (setq comment-start ";") | 105 | (setq comment-start ";") |
| 106 | (make-local-variable 'comment-start-skip) | 106 | (make-local-variable 'comment-start-skip) |
| 107 | (setq comment-start-skip ";+[ \t]*") | 107 | ;; Look within the line for a ; following an even number of backslashes |
| 108 | ;; after either a non-backslash or the line beginning. | ||
| 109 | (setq comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+[ \t]*") | ||
| 108 | (make-local-variable 'comment-column) | 110 | (make-local-variable 'comment-column) |
| 109 | (setq comment-column 40) | 111 | (setq comment-column 40) |
| 110 | (make-local-variable 'comment-indent-function) | 112 | (make-local-variable 'comment-indent-function) |