aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDave Love1998-06-01 16:51:52 +0000
committerDave Love1998-06-01 16:51:52 +0000
commit4fa91cfeccea658125751d12980fb545f0921fde (patch)
tree20b9163114d2dba0eef5dae0b06d490793363afc /lisp
parent124abc748d15498edb49159a84e36c3b9cd281a1 (diff)
downloademacs-4fa91cfeccea658125751d12980fb545f0921fde.tar.gz
emacs-4fa91cfeccea658125751d12980fb545f0921fde.zip
(sgml-font-lock-keywords-1): Add -. as
NMCHARs. Elide upper case (see font-lock-defaults). Generalize comment declaration not to exclude markup.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/sgml-mode.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 0ebd95f55c6..c92a8df221c 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -56,7 +56,7 @@ The supported characters and potential disadvantages are:
56 ?' Makes ' in text start a string. 56 ?' Makes ' in text start a string.
57 ?- Makes -- in text start a comment. 57 ?- Makes -- in text start a comment.
58 58
59When only one of ?\\\" or ?' are included, \"'\" or '\"' as it can be found in 59When only one of ?\\\" or ?' are included, \"'\" or '\"', as can be found in
60DTDs, start a string. To partially avoid this problem this also makes these 60DTDs, start a string. To partially avoid this problem this also makes these
61self insert as named entities depending on `sgml-quick-keys'. 61self insert as named entities depending on `sgml-quick-keys'.
62 62
@@ -207,10 +207,10 @@ Any terminating `>' or `/' is not matched.")
207 207
208;; internal 208;; internal
209(defconst sgml-font-lock-keywords-1 209(defconst sgml-font-lock-keywords-1
210 '(("<\\([!?][a-zA-Z0-9]+\\)" 1 font-lock-keyword-face) 210 '(("<\\([!?][a-z][-.a-z0-9]+\\)" 1 font-lock-keyword-face)
211 ("<\\(/?[a-zA-Z0-9]+\\)" 1 font-lock-function-name-face) 211 ("<\\(/?[a-z][-.a-z0-9]+\\)" 1 font-lock-function-name-face)
212 ("[&%][-.A-Za-z0-9]+;?" . font-lock-variable-name-face) 212 ("[&%][a-z][-.a-z0-9]+;?" . font-lock-variable-name-face)
213 ("<!--[^<>]*-->" . font-lock-comment-face))) 213 ("<! *--.*-- *>" . font-lock-comment-face)))
214 214
215(defconst sgml-font-lock-keywords-2 ()) 215(defconst sgml-font-lock-keywords-2 ())
216 216