diff options
| author | Stefan Monnier | 2008-02-14 02:42:45 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-02-14 02:42:45 +0000 |
| commit | c273429337771fd0318b4f45cbd21eed4bf48e4d (patch) | |
| tree | 6572ed0e649990b3135274e5ae69e60c57a589c9 /lisp/textmodes | |
| parent | 53dc03721a07dcc37589add0bad646f88e60a2cf (diff) | |
| download | emacs-c273429337771fd0318b4f45cbd21eed4bf48e4d.tar.gz emacs-c273429337771fd0318b4f45cbd21eed4bf48e4d.zip | |
(sgml-mode): Fix comment syntax.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/sgml-mode.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index ed7bd87237a..37531306aa6 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el | |||
| @@ -469,8 +469,12 @@ Do \\[describe-key] on the following bindings to discover what they do. | |||
| 469 | sgml-transformation-function)) | 469 | sgml-transformation-function)) |
| 470 | ;; This will allow existing comments within declarations to be | 470 | ;; This will allow existing comments within declarations to be |
| 471 | ;; recognized. | 471 | ;; recognized. |
| 472 | (set (make-local-variable 'comment-start-skip) "\\(?:<!\\)?--[ \t]*") | 472 | ;; I can't find a clear description of SGML/XML comments, but it seems that |
| 473 | (set (make-local-variable 'comment-end-skip) "[ \t]*--\\([ \t\n]*>\\)?") | 473 | ;; the only reliable ones are <!-- ... --> although it's not clear what |
| 474 | ;; "..." can contain. It used to accept -- ... -- as well, but that was | ||
| 475 | ;; apparently a mistake. | ||
| 476 | (set (make-local-variable 'comment-start-skip) "<!--[ \t]*") | ||
| 477 | (set (make-local-variable 'comment-end-skip) "[ \t]*--[ \t\n]*>") | ||
| 474 | ;; This definition has an HTML leaning but probably fits well for other modes. | 478 | ;; This definition has an HTML leaning but probably fits well for other modes. |
| 475 | (setq imenu-generic-expression | 479 | (setq imenu-generic-expression |
| 476 | `((nil | 480 | `((nil |