diff options
| author | Mattias EngdegÄrd | 2023-07-30 15:30:38 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-07-30 18:12:19 +0200 |
| commit | 2b8796eea1979fe6891ab9d80cd126fe8980167a (patch) | |
| tree | 0e49ad64bf11942baf797aecf87723ecc8842f00 /java/org/gnu | |
| parent | ba60070b81c4b507b856269031a17b99e9f5e77c (diff) | |
| download | emacs-2b8796eea1979fe6891ab9d80cd126fe8980167a.tar.gz 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 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions