(sgml-mode): Fix comment syntax.
This commit is contained in:
parent
53dc03721a
commit
c273429337
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-02-14 Stefan Monnier <monnier@pastel.home>
|
||||
|
||||
* textmodes/sgml-mode.el (sgml-mode): Fix comment syntax.
|
||||
|
||||
2008-02-13 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* 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.
|
|||
sgml-transformation-function))
|
||||
;; 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
|
||||
`((nil
|
||||
|
|
Loading…
Add table
Reference in a new issue