]> git.eshelyaron.com Git - emacs.git/commit
rx: better not-wordchar and (syntax word) translation
authorMattias Engdegård <mattiase@acm.org>
Mon, 24 Jul 2023 07:44:01 +0000 (09:44 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 2 Aug 2023 16:32:54 +0000 (18:32 +0200)
commitece5ace4a52eda26d9fe9563206781944aed16d0
tree73aba3d87d5870055119b59316946eed31c286eb
parentd167888c5b7740af3300ee363c5121519dada0a2
rx: better not-wordchar and (syntax word) translation

* lisp/emacs-lisp/rx.el:
Add tables of legacy syntax.
(rx--translate-symbol):
Translate the legacy construct `not-wordchar` as (not wordchar), which
is more intuitively obvious.
* lisp/emacs-lisp/rx.el (rx--translate-syntax):
Generate the shorter \w and \W instead of \sw and \Sw.
* test/lisp/emacs-lisp/rx-tests.el (rx-atoms, rx-syntax, rx-not):
Adapt tests.
lisp/emacs-lisp/rx.el
test/lisp/emacs-lisp/rx-tests.el