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

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

bug#66732: tree-sitter fontification doesn't update multi-line syntax re


From: Yuan Fu
Subject: bug#66732: tree-sitter fontification doesn't update multi-line syntax reliably
Date: Sat, 23 Dec 2023 15:07:15 -0800


> On Dec 23, 2023, at 12:51 PM, Dmitry Gutov <dmitry@gutov.dev> wrote:
> 
> On 23/12/2023 22:46, Dmitry Gutov wrote:
>> On 23/12/2023 20:02, Yuan Fu wrote:
>>> I have a patch. Dmitry, WDYT?
>> Looks good! I haven't had a chance to test it yet, but it's probably not 
>> necessary to do before the checkin.

I tested with C block comments and python triple quotes and they both work fine.

> 
> Speaking of pre-redisplay-functions, though, Stefan mentioned that it could 
> be beneficial to do a debounce (based on buffer-chars-modified-tick?) because 
> they can be called several times per user command.
> 
> Although if the parser short-circuits when the buffer is unchanged since last 
> time, perhaps it's not necessary.

Cool. I added debounce and removed ruby-ts-mode code, and pushed to emacs-29.

Yuan




reply via email to

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