Mercurial > hg > xemacs
diff shared/sgml-font-lock-keywords.el @ 0:107d592c5f4a
DICE versions, used by pers/common, recursive, I think/hope
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Mon, 08 Feb 2021 11:44:37 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/shared/sgml-font-lock-keywords.el Mon Feb 08 11:44:37 2021 +0000 @@ -0,0 +1,11 @@ +(defvar sgml-font-lock-keywords +'(;; highlight defining forms. + ("^<!\\([^- \t\n]+\\)[ \t\n]\\s-*\\(% \\)?\\(\\S-+\\)" + (1 font-lock-keyword-face) (3 font-lock-function-name-face)) + ("</?\\([-a-z0-9.A-Z]+\\)" 1 font-lock-function-name-face t) ; allow overlap to speed up + ("\\(/\\)>" 1 font-lock-function-name-face) + ("[%&][^ \t\n;]+" . font-lock-string-face) + ("--[^-]+\\(-[^-]+\\)*--" . font-lock-comment-face) + ("^<[?].*>" . font-lock-string-face) + ) +)