aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1996-10-07 18:29:22 +0000
committerRichard M. Stallman1996-10-07 18:29:22 +0000
commit21a6f23c3074ceec1347a86610be43457cffbb25 (patch)
tree51387c2f7ae04b13b47379cd454d9adb69b31a54 /lisp
parentcf5db374182dd588ceb30425e2ea8a31772bed11 (diff)
downloademacs-21a6f23c3074ceec1347a86610be43457cffbb25.tar.gz
emacs-21a6f23c3074ceec1347a86610be43457cffbb25.zip
(sgml-specials): Delete `-' from the list.
(sgml-font-lock-keywords): Add an element for comments.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/sgml-mode.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 5b4c5fb52a8..234d8c2fba7 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -34,7 +34,7 @@
34;; As long as Emacs' syntax can't be complemented with predicates to context 34;; As long as Emacs' syntax can't be complemented with predicates to context
35;; sensitively confirm the syntax of characters, we have to live with this 35;; sensitively confirm the syntax of characters, we have to live with this
36;; kludgy kind of tradeoff. 36;; kludgy kind of tradeoff.
37(defvar sgml-specials '(?\" ?-) 37(defvar sgml-specials '(?\")
38 "List of characters that have a special meaning for sgml-mode. 38 "List of characters that have a special meaning for sgml-mode.
39This list is used when first loading the sgml-mode library. 39This list is used when first loading the sgml-mode library.
40The supported characters and potential disadvantages are: 40The supported characters and potential disadvantages are:
@@ -45,9 +45,10 @@ The supported characters and potential disadvantages are:
45 45
46When only one of ?\\\" or ?' are included, \"'\" or '\"' as it can be found in 46When only one of ?\\\" or ?' are included, \"'\" or '\"' as it can be found in
47DTDs, start a string. To partially avoid this problem this also makes these 47DTDs, start a string. To partially avoid this problem this also makes these
48self insert as named entities depending on `sgml-quick-keys'. <!----> must 48self insert as named entities depending on `sgml-quick-keys'.
49contain an even multiple of two (4, 8, ...) minuses, or Emacs' syntax 49
50mechanism won't recognize a comment.") 50Including ?- has the problem of affecting dashes that have nothing to do
51with comments, so we normally turn it off.")
51 52
52(defvar sgml-quick-keys nil 53(defvar sgml-quick-keys nil
53 "Use <, >, &, SPC and `sgml-specials' keys ``electrically'' when non-nil. 54 "Use <, >, &, SPC and `sgml-specials' keys ``electrically'' when non-nil.
@@ -188,7 +189,8 @@ Any terminating > or / is not matched.")
188(defvar sgml-font-lock-keywords 189(defvar sgml-font-lock-keywords
189 '(("<\\([!?][a-z0-9]+\\)" 1 font-lock-keyword-face) 190 '(("<\\([!?][a-z0-9]+\\)" 1 font-lock-keyword-face)
190 ("<\\(/?[a-z0-9]+\\)" 1 font-lock-function-name-face) 191 ("<\\(/?[a-z0-9]+\\)" 1 font-lock-function-name-face)
191 ("[&%][-.A-Za-z0-9]+;?" . font-lock-variable-name-face)) 192 ("[&%][-.A-Za-z0-9]+;?" . font-lock-variable-name-face)
193 ("<!--[^<>]*-->" . font-lock-comment-face))
192 "*Rules for highlighting SGML code. See also `sgml-tag-face-alist'.") 194 "*Rules for highlighting SGML code. See also `sgml-tag-face-alist'.")
193 195
194;; internal 196;; internal