]> git.eshelyaron.com Git - emacs.git/commit
Allow back-references in syntax-propertize-rules.
authorTassilo Horn <tsdh@gnu.org>
Sat, 16 May 2020 08:05:12 +0000 (10:05 +0200)
committerTassilo Horn <tsdh@gnu.org>
Tue, 19 May 2020 18:50:14 +0000 (20:50 +0200)
commit5af991872d5024b69272588772961bafef5a35bb
treeb0da97f1d2888441e5c1bbf807e42277227ae105
parent659ed857c04936140fea847795f8b85c5dcc3920
Allow back-references in syntax-propertize-rules.

* lisp/emacs-lisp/syntax.el (syntax-propertize--shift-groups-and-backrefs):
Renamed from syntax-propertize--shift-groups, and also shift
back-references.
(syntax-propertize-rules): Adapt docstring and use renamed function.
* test/lisp/emacs-lisp/syntax-tests.el: New test.
(syntax-propertize--shift-groups-and-backrefs): New ERT test.
lisp/emacs-lisp/syntax.el
test/lisp/emacs-lisp/syntax-tests.el [new file with mode: 0644]