Add 'rx' pattern for pcase.

* lisp/emacs-lisp/rx.el (rx): New pcase macro.
* test/lisp/emacs-lisp/rx-tests.el (rx-pcase): Add unit test.
This commit is contained in:
Philipp Stephani 2017-07-20 21:36:18 +02:00
parent f57c710772
commit ad4eff3b90
4 changed files with 69 additions and 1 deletions

View file

@ -930,6 +930,5 @@ QPAT can take the following forms:
((or (stringp qpat) (integerp qpat) (symbolp qpat)) `',qpat)
(t (error "Unknown QPAT: %S" qpat))))
(provide 'pcase)
;;; pcase.el ends here