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 | |
| parent | 53dc03721a07dcc37589add0bad646f88e60a2cf (diff) | |
| download | emacs-c273429337771fd0318b4f45cbd21eed4bf48e4d.tar.gz emacs-c273429337771fd0318b4f45cbd21eed4bf48e4d.zip | |
(sgml-mode): Fix comment syntax.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/textmodes/sgml-mode.el | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9233db66710..a92d8d16c73 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-02-14 Stefan Monnier <monnier@pastel.home> | ||
| 2 | |||
| 3 | * textmodes/sgml-mode.el (sgml-mode): Fix comment syntax. | ||
| 4 | |||
| 1 | 2008-02-13 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2008-02-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * hilit-chg.el (highlight-save-buffer-state): New macro. | 7 | * hilit-chg.el (highlight-save-buffer-state): New macro. |
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 |