bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60953: The :match predicate with large regexp in tree-sitter font-lo


From: Dmitry Gutov
Subject: bug#60953: The :match predicate with large regexp in tree-sitter font-lock seems inefficient
Date: Mon, 30 Jan 2023 21:58:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 30/01/2023 21:05, Eli Zaretskii wrote:
Date: Mon, 30 Jan 2023 21:01:02 +0200
Cc:casouri@gmail.com,60953@debbugs.gnu.org
From: Dmitry Gutov<dgutov@yandex.ru>

But that doesn't answer the question "Could it?".
I don't understand what you are asking.  "Could" in what sense?

Like, would it make sense to try to modify it that way, or extract a function that would do that, without writing it from scratch.

Or create a new function which would reuse some common code.

We would call the new function something like match_buffer_substring. Optionally, also expose it to Lisp.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]