]> code.delx.au - gnu-emacs/blobdiff - lisp/xml.el
* xml.el (xml-entity-or-char-ref-re): Fix regexp.
[gnu-emacs] / lisp / xml.el
index b6c37612ab3660688f7ef53f7313311abb52c271..2232746f02a93bf1abc5bb90dbf98742df5e0f51 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 ';'