* xml.el (xml-entity-or-char-ref-re): Fix regexp.
authorChong Yidong <cyd@gnu.org>
Wed, 23 Jan 2013 06:25:50 +0000 (14:25 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 23 Jan 2013 06:25:50 +0000 (14:25 +0800)
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/ChangeLog
lisp/xml.el

index 7be8224..eee7700 100644 (file)
@@ -1,3 +1,7 @@
+2013-01-23  Chong Yidong  <cyd@gnu.org>
+
+       * xml.el (xml-entity-or-char-ref-re): Fix regexp.
+
 2013-01-18  Leo Liu  <sdl.web@gmail.com>
 
        * dired.el (dired-get-marked-files): Prune erroneous values due to
index b6c3761..2232746 100644 (file)
@@ -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 ';'