Commit c2734293 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(sgml-mode): Fix comment syntax.

parent 53dc0372
2008-02-14 Stefan Monnier <monnier@pastel.home>
* textmodes/sgml-mode.el (sgml-mode): Fix comment syntax.
2008-02-13 Stefan Monnier <>
* hilit-chg.el (highlight-save-buffer-state): New macro.
......@@ -469,8 +469,12 @@ Do \\[describe-key] on the following bindings to discover what they do.
;; This will allow existing comments within declarations to be
;; recognized.
(set (make-local-variable 'comment-start-skip) "\\(?:<!\\)?--[ \t]*")
(set (make-local-variable 'comment-end-skip) "[ \t]*--\\([ \t\n]*>\\)?")
;; I can't find a clear description of SGML/XML comments, but it seems that
;; the only reliable ones are <!-- ... --> although it's not clear what
;; "..." can contain. It used to accept -- ... -- as well, but that was
;; apparently a mistake.
(set (make-local-variable 'comment-start-skip) "<!--[ \t]*")
(set (make-local-variable 'comment-end-skip) "[ \t]*--[ \t\n]*>")
;; This definition has an HTML leaning but probably fits well for other modes.
(setq imenu-generic-expression
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment