regex.c (mutually_exclusive_aux) <wordbound>: Remove optimization
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 28 Sep 2023 16:37:44 +0000 (12:37 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 28 Sep 2023 16:37:44 +0000 (12:37 -0400)
commit7c26501175f7dc657c677c151d49d04291ea67e7
tree1e0e7be5a4ffcba27924243f960de7cc8d79613b
parent0c15c7d9467f33ccc317296af00440b37569c703
regex.c (mutually_exclusive_aux) <wordbound>: Remove optimization

Another case that was too optimistic.  Better use \> or \< rather
than \b if you want your regexp to be handled efficiently.

* src/regex-emacs.c (mutually_exclusive_aux) <wordbound>: Cancel optimization.
* test/src/regex-emacs-tests.el (regexp-tests-backtrack-optimization):
New test.
src/regex-emacs.c
test/src/regex-emacs-tests.el