diff options
| author | Chong Yidong | 2009-12-05 20:23:25 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-12-05 20:23:25 +0000 |
| commit | 5d1fd962bb92a07ef86138ba64f0e60d0302ad33 (patch) | |
| tree | c814706ccfc81b1ad33bbfa71b8d1c4a07e98194 | |
| parent | 022eef6211c560013e6dda4c25b07921f8e9525c (diff) | |
| download | emacs-5d1fd962bb92a07ef86138ba64f0e60d0302ad33.tar.gz emacs-5d1fd962bb92a07ef86138ba64f0e60d0302ad33.zip | |
* textmodes/sgml-mode.el (sgml-lexical-context): Recognise
comment-start-skip to comment-end-skip as comment (Bug#4781).
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/sgml-mode.el | 6 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-12-05 Juri Linkov <juri@jurta.org> | 6 | 2009-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 |