aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/sgml-mode.el6
2 files changed, 11 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 59f66460314..3e5a9875a2f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-12-05 Kevin Ryde <user42@zip.com.au>
2
3 * textmodes/sgml-mode.el (sgml-lexical-context): Recognise
4 comment-start-skip to comment-end-skip as comment (Bug#4781).
5
12009-12-05 Juri Linkov <juri@jurta.org> 62009-12-05 Juri Linkov <juri@jurta.org>
2 7
3 * info.el (Info-find-node-2): Set `Info-current-subfile' to nil 8 * info.el (Info-find-node-2): Set `Info-current-subfile' to nil
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 52d0a70e257..7cefa160ed1 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -1066,6 +1066,12 @@ If nil, start from a preceding tag at indentation."
1066 (let ((cdata-start (point))) 1066 (let ((cdata-start (point)))
1067 (unless (search-forward "]]>" pos 'move) 1067 (unless (search-forward "]]>" pos 'move)
1068 (list 0 nil nil 'cdata nil nil nil nil cdata-start)))) 1068 (list 0 nil nil 'cdata nil nil nil nil cdata-start))))
1069 ((looking-at comment-start-skip)
1070 ;; parse-partial-sexp doesn't handle <!-- comments -->,
1071 ;; or only if ?- is in sgml-specials, so match explicitly
1072 (let ((start (point)))
1073 (unless (re-search-forward comment-end-skip pos 'move)
1074 (list 0 nil nil nil t nil nil nil start))))
1069 ((and sgml-xml-mode (looking-at "<\\?")) 1075 ((and sgml-xml-mode (looking-at "<\\?"))
1070 ;; Processing Instructions. 1076 ;; Processing Instructions.
1071 ;; In SGML, it's basically a normal tag of the form 1077 ;; In SGML, it's basically a normal tag of the form