* lisp/nxml/xsd-regexp.el (xsdre-range-list-to-char-alternative):
Make (string-match (xsdre-translate "\\p{P}") "a-b") work
(bug#24093) -- the "forbidden" characters don't have to be the
first elements in a range.
((eq first ?-)
(setq hyphen t)
(setq first (1+ first)))
+ ((eq last ?-)
+ (setq hyphen t)
+ (setq last (1- last)))
((eq first ?\])
(setq close-bracket t)
- (setq first (1+ first))))
+ (setq first (1+ first)))
+ ((eq last ?\])
+ (setq close-bracket t)
+ (setq last (1- last))))
(<= first last)))
(when (<= first last)
(setq chars