summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-04-05 01:35:18 +0200
committerStefan Kangas <stefan@marxist.se>2021-04-05 11:14:34 +0200
commite9c3d040bcfab5908e6deb7330038f36ce95bc93 (patch)
treed911b8b3c12499f3ed843c2054512dfc0b5e9b76 /lisp
parent1733fa0cab766bd3d2c725b31bc1e51d9b41ead7 (diff)
downloademacs-e9c3d040bcfab5908e6deb7330038f36ce95bc93.tar.gz
emacs-e9c3d040bcfab5908e6deb7330038f36ce95bc93.tar.bz2
emacs-e9c3d040bcfab5908e6deb7330038f36ce95bc93.zip
* lisp/htmlfontify.el (hfy-triplet-regex): Use rx.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/htmlfontify.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el
index 0c8d5348247..550083d0e28 100644
--- a/lisp/htmlfontify.el
+++ b/lisp/htmlfontify.el
@@ -523,13 +523,10 @@ therefore no longer care about) will be invalid at any time.\n
(defvar hfy-tmpfont-stack nil
"An alist of derived fonts resulting from overlays.")
-(defconst hfy-hex-regex "[[:xdigit:]]")
-
(defconst hfy-triplet-regex
- (concat
- "\\(" hfy-hex-regex hfy-hex-regex "\\)"
- "\\(" hfy-hex-regex hfy-hex-regex "\\)"
- "\\(" hfy-hex-regex hfy-hex-regex "\\)"))
+ (rx (group xdigit xdigit)
+ (group xdigit xdigit)
+ (group xdigit xdigit)))
(defun hfy-interq (set-a set-b)
"Return the intersection (using `eq') of two lists SET-A and SET-B."