]> git.eshelyaron.com Git - emacs.git/commit
(treesit_predicate_match): Match node text against regexp without consing
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 2 Feb 2023 11:32:41 +0000 (13:32 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 2 Feb 2023 19:38:59 +0000 (21:38 +0200)
commit3b3c47d977bbe27f7157557b6b0e25d1dcf07640
tree9da50417b3b2225c205371b86b8b11cc5015032b
parente8334781c9ffcf29a56a6eaf449f58d5b18c148a
(treesit_predicate_match): Match node text against regexp without consing

* src/treesit.c (treesit_predicate_match): Match node text against
regexp without creating a new string object (bug#60953).

* src/search.c (search_buffer): Make not static.
Delete declaration near the beginning of the file.

* src/lisp.h: Declare it here.

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--builtin-method-p):
Remove function.
(ruby-ts--font-lock-settings): Use the regexp with :match directly.
lisp/progmodes/ruby-ts-mode.el
src/lisp.h
src/search.c
src/treesit.c