]> git.eshelyaron.com Git - emacs.git/commit
Fix some tree-sitter :match regexps
authorBasil L. Contovounesios <contovob@tcd.ie>
Tue, 13 Jun 2023 12:53:31 +0000 (13:53 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sat, 17 Jun 2023 19:47:50 +0000 (20:47 +0100)
commitcd8d3f3379ec7179fac4bb8e9c40658be15a64f6
tree99eb89fb4e587f632349d068e9ea73d8a2adea18
parentfef27d28fa70b52b6dc302d0b3ae1687499dd499
Fix some tree-sitter :match regexps

This was originally installed on 2023-06-17 in the emacs-29 release
branch and later reverted.  The intention is to backport it after
Emacs 29.1 is released.

The shy groups were caught by modified versions of the GNU ELPA
packages xr and relint:
- https://github.com/mattiase/xr/pull/6
- https://github.com/mattiase/relint/pull/14

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--s-p-query): Quote special
character in regexp.
* lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
* lisp/progmodes/js.el (js--plain-method-re):
(js--treesit-font-lock-settings):
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings):
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Replace character
alternative [\\d], which matches '\' or 'd', with the most likely
intention [0-9].  Fix shy groups mistyped as optional colons.
Remove unneeded numbered :match group in rust-ts-mode (bug#64019).
lisp/progmodes/java-ts-mode.el
lisp/progmodes/js.el
lisp/progmodes/ruby-ts-mode.el
lisp/progmodes/rust-ts-mode.el
lisp/progmodes/typescript-ts-mode.el