changeset 23726:ca83df619ee6

Require skeleton when compiling. (sgml-font-lock-keywords-1): Accept single-letter tags. (v2): Defvar free variable.
author Dave Love <fx@gnu.org>
date Mon, 16 Nov 1998 17:50:28 +0000
parents 222d58586999
children 682a37afcb98
files lisp/textmodes/sgml-mode.el
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/sgml-mode.el	Mon Nov 16 06:37:55 1998 +0000
+++ b/lisp/textmodes/sgml-mode.el	Mon Nov 16 17:50:28 1998 +0000
@@ -32,6 +32,8 @@
 
 ;;; Code:
 
+(eval-when-compile (require 'skeleton))
+
 (defgroup sgml nil
   "SGML editing mode"
   :group 'languages)
@@ -207,9 +209,9 @@
 
 ;; internal
 (defconst sgml-font-lock-keywords-1
-  '(("<\\([!?][a-z][-.a-z0-9]+\\)" 1 font-lock-keyword-face)
-    ("<\\(/?[a-z][-.a-z0-9]+\\)" 1 font-lock-function-name-face)
-    ("[&%][a-z][-.a-z0-9]+;?" . font-lock-variable-name-face)
+  '(("<\\([!?][a-z][-.a-z0-9]*\\)" 1 font-lock-keyword-face)
+    ("<\\(/?[a-z][-.a-z0-9]*\\)" 1 font-lock-function-name-face)
+    ("[&%][a-z][-.a-z0-9]*;?" . font-lock-variable-name-face)
     ("<! *--.*-- *>" . font-lock-comment-face)))
 
 (defconst sgml-font-lock-keywords-2 ())
@@ -276,6 +278,8 @@
 		       (string :tag "Description")))
   :group 'sgml)
 
+(defvar v2)				; free for skeleton
+
 (defun sgml-mode-common (sgml-tag-face-alist sgml-display-text)
   "Common code for setting up `sgml-mode' and derived modes.
 SGML-TAG-FACE-ALIST is used for calculating `sgml-font-lock-keywords-2'.