mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 18:41:25 -08:00
Fix regex repetition of repetitions
Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-12/msg00066.html * lisp/gnus/gnus-util.el (gnus-emacs-version): * lisp/mail/rfc2368.el (rfc2368-mailto-regexp): * lisp/net/tramp-sh.el (tramp-sh-inotifywait-process-filter): * lisp/obsolete/terminal.el (te-parse-program-and-args): * lisp/org/org-table.el (org-table-wrap-region): * lisp/progmodes/verilog-mode.el (verilog-inject-inst): Avoid repetition-of-repetition in regexp.
This commit is contained in:
parent
4472b053c3
commit
ab612302b4
6 changed files with 6 additions and 6 deletions
|
|
@ -10973,7 +10973,7 @@ shown) will make this into:
|
|||
(t
|
||||
;; Delete identical interconnect
|
||||
(let ((case-fold-search nil)) ; So we don't convert upper-to-lower, etc
|
||||
(while (verilog-re-search-forward-quick "\\.\\s *\\([a-zA-Z0-9`_$]+\\)*\\s *(\\s *\\1\\s *)\\s *" end-pt t)
|
||||
(while (verilog-re-search-forward-quick "\\.\\s *\\([a-zA-Z0-9`_$]+\\)?\\s *(\\s *\\1\\s *)\\s *" end-pt t)
|
||||
(delete-region (match-beginning 0) (match-end 0))
|
||||
(setq end-pt (- end-pt (- (match-end 0) (match-beginning 0)))) ; Keep it correct
|
||||
(while (or (looking-at "[ \t\n\f,]+")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue