(rx-or): Fix the case of "(rx (and ?a (or ?b ?c) ?d))".
This commit is contained in:
parent
01cf96d518
commit
cdddbfd273
2 changed files with 10 additions and 3 deletions
|
@ -286,9 +286,11 @@ FORM is of the form `(and FORM1 ...)'."
|
|||
(dolist (arg (cdr form))
|
||||
(unless (stringp arg)
|
||||
(setq all-args-strings nil)))
|
||||
(if all-args-strings
|
||||
(regexp-opt (cdr form))
|
||||
(mapconcat #'rx-to-string (cdr form) "\\|"))))
|
||||
(concat "\\(?:"
|
||||
(if all-args-strings
|
||||
(regexp-opt (cdr form))
|
||||
(mapconcat #'rx-to-string (cdr form) "\\|"))
|
||||
"\\)")))
|
||||
|
||||
|
||||
(defun rx-quote-for-set (string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue