aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/css-mode.el6
-rw-r--r--lisp/textmodes/sgml-mode.el2
2 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 5d5d787945d..b0653bce81c 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -873,7 +873,7 @@ cannot be completed sensibly: `custom-ident',
873 (css--uri-re (1 "|") (2 "|")))) 873 (css--uri-re (1 "|") (2 "|"))))
874 874
875(defconst css-escapes-re 875(defconst css-escapes-re
876 "\\\\\\(?:[^\000-\037\177]\\|[0-9a-fA-F]+[ \n\t\r\f]?\\)") 876 "\\\\\\(?:[^\000-\037\177]\\|[[:xdigit:]]+[ \n\t\r\f]?\\)")
877(defconst css-nmchar-re (concat "\\(?:[-[:alnum:]]\\|" css-escapes-re "\\)")) 877(defconst css-nmchar-re (concat "\\(?:[-[:alnum:]]\\|" css-escapes-re "\\)"))
878(defconst css-nmstart-re (concat "\\(?:[[:alpha:]]\\|" css-escapes-re "\\)")) 878(defconst css-nmstart-re (concat "\\(?:[[:alpha:]]\\|" css-escapes-re "\\)"))
879(defconst css-ident-re ;; (concat css-nmstart-re css-nmchar-re "*") 879(defconst css-ident-re ;; (concat css-nmstart-re css-nmchar-re "*")
@@ -1079,10 +1079,10 @@ This recognizes CSS-color-4 extensions."
1079 (regexp-opt (mapcar #'car css--color-map) 'symbols) 1079 (regexp-opt (mapcar #'car css--color-map) 'symbols)
1080 "\\|" 1080 "\\|"
1081 ;; Short hex. css-color-4 adds alpha. 1081 ;; Short hex. css-color-4 adds alpha.
1082 "\\(#[0-9a-fA-F]\\{3,4\\}\\b\\)" 1082 "\\(#[[:xdigit:]]\\{3,4\\}\\b\\)"
1083 "\\|" 1083 "\\|"
1084 ;; Long hex. css-color-4 adds alpha. 1084 ;; Long hex. css-color-4 adds alpha.
1085 "\\(#\\(?:[0-9a-fA-F][0-9a-fA-F]\\)\\{3,4\\}\\b\\)" 1085 "\\(#\\(?:[[:xdigit:]][[:xdigit:]]\\)\\{3,4\\}\\b\\)"
1086 "\\|" 1086 "\\|"
1087 ;; RGB. 1087 ;; RGB.
1088 "\\(\\_<rgba?(\\)" 1088 "\\(\\_<rgba?(\\)"
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index aa00024a6d9..d8210037c6d 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -1302,7 +1302,7 @@ With prefix argument UNQUOTEP, unquote the region. All numeric entities,
1302 (if unquotep 1302 (if unquotep
1303 ;; FIXME: We should unquote other named character references as well. 1303 ;; FIXME: We should unquote other named character references as well.
1304 (while (re-search-forward 1304 (while (re-search-forward
1305 "\\(&\\(amp\\|quot\\|lt\\|gt\\|#\\([0-9]+\\|[xX][0-9a-fA-F]+\\)\\)\\)\\([][<>&;\n\t \"%!'(),/=?]\\|$\\)" 1305 "\\(&\\(amp\\|quot\\|lt\\|gt\\|#\\([0-9]+\\|[xX][[:xdigit:]]+\\)\\)\\)\\([][<>&;\n\t \"%!'(),/=?]\\|$\\)"
1306 nil t) 1306 nil t)
1307 (replace-match 1307 (replace-match
1308 (string 1308 (string