summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/regexp-opt-tests.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-07-30 15:30:38 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2023-07-30 18:12:19 +0200
commit2b8796eea1979fe6891ab9d80cd126fe8980167a (patch)
tree0e49ad64bf11942baf797aecf87723ecc8842f00 /test/lisp/emacs-lisp/regexp-opt-tests.el
parentba60070b81c4b507b856269031a17b99e9f5e77c (diff)
downloademacs-2b8796eea1979fe6891ab9d80cd126fe8980167a.tar.gz
emacs-2b8796eea1979fe6891ab9d80cd126fe8980167a.tar.bz2
emacs-2b8796eea1979fe6891ab9d80cd126fe8980167a.zip
Fix rx wrong-code bug: ranges starting with ^
(rx (in (?^ . ?a))) was incorrectly translated to "[^-a]". Change it so that we get "[_-a^]" instead. * lisp/emacs-lisp/rx.el (rx--generate-alt): Split ranges starting with `^` occurring first in a non-negated character alternative. * test/lisp/emacs-lisp/rx-tests.el (rx-any): Add and adapt tests. (cherry picked from commit 5f5d668ac7917d61e9366fe0c3efd7b542671c3d)
Diffstat (limited to 'test/lisp/emacs-lisp/regexp-opt-tests.el')
0 files changed, 0 insertions, 0 deletions