mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 11:00:45 -08:00
More minor regex cleanup
Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00643.html plus a few others that I noticed. * lisp/auth-source-pass.el (auth-source-pass--parse-data): * lisp/org/org-datetree.el (org-datetree--find-create): * lisp/org/org-pcomplete.el (org-thing-at-point): * lisp/progmodes/js.el (js--end-of-do-while-loop-p): * lisp/textmodes/sgml-mode.el: (sgml-electric-tag-pair-before-change-function): * lisp/textmodes/texnfo-upd.el (texinfo-menu-copy-old-description): * lisp/url/url-http.el (url-http-parse-response): Fix regular expression and similar syntax.
This commit is contained in:
parent
b2dd61ffb0
commit
e14c0d748e
8 changed files with 16 additions and 14 deletions
|
|
@ -894,7 +894,7 @@ Return non-nil if we skipped over matched tags."
|
|||
(condition-case err
|
||||
(save-excursion
|
||||
(goto-char end)
|
||||
(skip-chars-backward "[:alnum:]-_.:")
|
||||
(skip-chars-backward "-[:alnum:]_.:")
|
||||
(if (and ;; (<= (point) beg) ; This poses problems for downcase-word.
|
||||
(or (eq (char-before) ?<)
|
||||
(and (eq (char-before) ?/)
|
||||
|
|
@ -902,7 +902,7 @@ Return non-nil if we skipped over matched tags."
|
|||
(null (get-char-property (point) 'text-clones)))
|
||||
(let* ((endp (eq (char-before) ?/))
|
||||
(cl-start (point))
|
||||
(cl-end (progn (skip-chars-forward "[:alnum:]-_.:") (point)))
|
||||
(cl-end (progn (skip-chars-forward "-[:alnum:]_.:") (point)))
|
||||
(match
|
||||
(if endp
|
||||
(when (sgml-skip-tag-backward 1) (forward-char 1) t)
|
||||
|
|
@ -919,7 +919,8 @@ Return non-nil if we skipped over matched tags."
|
|||
(equal (buffer-substring cl-start cl-end)
|
||||
(buffer-substring (point)
|
||||
(save-excursion
|
||||
(skip-chars-forward "[:alnum:]-_.:")
|
||||
(skip-chars-forward
|
||||
"-[:alnum:]_.:")
|
||||
(point))))
|
||||
(or (not endp) (eq (char-after cl-end) ?>)))
|
||||
(when clones
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue