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 /lisp/textmodes | |
| 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).
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/sgml-mode.el | 6 |
1 files changed, 6 insertions, 0 deletions
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 |