diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2023-02-20 21:22:41 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2023-02-20 21:22:41 -0500 |
commit | 5a864f23eb8a36ef435136c5b41cb01b875df399 (patch) | |
tree | cc7b6d2ebd44f079f0f1a2ce99783a72bcba0eaf /lisp/emacs-lisp | |
parent | e83c78b8c7784254c2c6f043530ab325c2fa7f16 (diff) | |
download | emacs-5a864f23eb8a36ef435136c5b41cb01b875df399.tar.gz emacs-5a864f23eb8a36ef435136c5b41cb01b875df399.tar.bz2 emacs-5a864f23eb8a36ef435136c5b41cb01b875df399.zip |
regex-emacs.c: Reduce the use of backtracking a bit further
bug#61514 exhibited some undesirable backtracking in a case where
it's easy to avoid it by making `mutually_exclusive_p` just a bit
more careful.
* src/regex-emacs.c (mutually_exclusive_p): Handle `on_failure_jump`s.
* test/src/regex-emacs-tests.el (regexp-tests-backtrack-optimization):
Add a few tests.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions