From 4d4ddaa78c15716a93f790b11e9879d73db5e7d9 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 23 Jan 2013 14:25:50 +0800 Subject: * xml.el (xml-entity-or-char-ref-re): Fix regexp. This bug was reported by Jae-oh Kim; it was posted to bug-gnu-emacs but didn't show up in the bug tracker for some reason. It is a regression against Emacs 24.2. --- lisp/xml.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/xml.el') diff --git a/lisp/xml.el b/lisp/xml.el index b6c37612ab3..2232746f02a 100644 --- a/lisp/xml.el +++ b/lisp/xml.el @@ -200,7 +200,7 @@ See also `xml-get-attribute-or-nil'." ;; [68] EntityRef ::= '&' Name ';' (defconst xml-entity-ref (concat "&" xml-name-re ";")) -(defconst xml-entity-or-char-ref-re (concat "&\\(?:#\\(x\\)?\\([0-9]+\\)\\|\\(" +(defconst xml-entity-or-char-ref-re (concat "&\\(?:#\\(x\\)?\\([0-9a-fA-F]+\\)\\|\\(" xml-name-re "\\)\\);")) ;; [69] PEReference ::= '%' Name ';' -- cgit v1.2.1