Index: sgml-mode.el =================================================================== RCS file: /sources/emacs/emacs/lisp/textmodes/sgml-mode.el,v retrieving revision 1.143 diff -u -u -r1.143 sgml-mode.el --- sgml-mode.el 18 Oct 2009 22:25:40 -0000 1.143 +++ sgml-mode.el 21 Oct 2009 23:02:02 -0000 @@ -1048,6 +1048,12 @@ (let ((cdata-start (point))) (unless (search-forward "]]>" pos 'move) (list 0 nil nil 'cdata nil nil nil nil cdata-start)))) + ((looking-at comment-start-skip) + ;; parse-partial-sexp doesn't handle , + ;; or only if ?- is in sgml-specials, so match explicitly + (let ((start (point))) + (unless (re-search-forward comment-end-skip pos 'move) + (list 0 nil nil nil t nil nil nil start)))) ((and sgml-xml-mode (looking-at "<\\?")) ;; Processing Instructions. ;; In SGML, it's basically a normal tag of the form