mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
Minor xml.el tweaks
* lisp/xml.el (xml-name-start-char-re, xml-name-char-re): No need to call concat. (xml-name-char-re): Use \u escapes rather than chars inline, so that the code matches the comments better and is easier to audit.
This commit is contained in:
parent
907d11fc53
commit
a697d1e638
1 changed files with 2 additions and 2 deletions
|
|
@ -176,11 +176,11 @@ See also `xml-get-attribute-or-nil'."
|
|||
|
||||
;; [4] NameStartChar
|
||||
;; See the definition of word syntax in `xml-syntax-table'.
|
||||
(defconst xml-name-start-char-re (concat "[[:word:]:_]"))
|
||||
(defconst xml-name-start-char-re "[[:word:]:_]")
|
||||
|
||||
;; [4a] NameChar ::= NameStartChar | "-" | "." | [0-9] | #xB7
|
||||
;; | [#x0300-#x036F] | [#x203F-#x2040]
|
||||
(defconst xml-name-char-re (concat "[-0-9.[:word:]:_·̀-ͯ‿⁀]"))
|
||||
(defconst xml-name-char-re "[[:word:]:_.0-9\u00B7\u0300-\u036F\u203F\u2040-]")
|
||||
|
||||
;; [5] Name ::= NameStartChar (NameChar)*
|
||||
(defconst xml-name-re (concat xml-name-start-char-re xml-name-char-re "*"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue