diff options
| author | Stefan Monnier | 2023-09-27 13:29:50 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-09-27 13:29:50 -0400 |
| commit | bc52fdd1d153b36a9da74d7aa7f1e6150ff6b2eb (patch) | |
| tree | a302e300d15378c840b9eab4f49861c375dd52f7 /java/org/gnu | |
| parent | 9a67540e51edca00b17de639af18989f9ecc9be9 (diff) | |
| download | emacs-bc52fdd1d153b36a9da74d7aa7f1e6150ff6b2eb.tar.gz emacs-bc52fdd1d153b36a9da74d7aa7f1e6150ff6b2eb.zip | |
* src/regex-emacs.c (analyze_first): Fix incorrect optimization
The optimization was incorrect in a particular corner case.
In this fix I just disable it conservatively for more cases because
it's not obvious how to fix it while preserving the "good" cases.
We may find a better fix by using an approach like the one
in `mutually_exhaustive_aux`, but for now this is good enough,
especially since \{..\} repetitions are not used very frequently.
* test/src/regex-resources/PTESTS: New test.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions