--- Begin Message ---
Subject: |
tree-sitter fontification doesn't update multi-line syntax reliably |
Date: |
Tue, 24 Oct 2023 16:22:20 +0200 |
Steps to reproduce:
1. Start emacs -q
2. Clear the scratch buffer
3. Switch to c-ts-mode
4. Type the following:
/* foo
bar
baz
*/
Notice the following:
1. tree-sitter will not parse the buffer contents as a comment until the
closing comment marker is typed (not an issue per se.)
2. When you type the closing comment marker, only that line will be
fontified.
3. Moving to the previous line will refontify the whole comment.
Similarly, removing the closing comment marker will not instantly
refontify the buffer, either.
The expected behavior would be for the whole comment to be refontified
immediately after typing the closing comment marker.
Other buffer contents often lead to even worse refontifying, where even
motion will not fix things.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#66732: tree-sitter fontification doesn't update multi-line syntax reliably |
Date: |
Wed, 7 Feb 2024 17:40:15 -0800 |
> On Dec 23, 2023, at 10:03 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> Date: Sat, 23 Dec 2023 22:55:04 +0200
>> Cc: 66732@debbugs.gnu.org, dominik@honnef.co, casouri@gmail.com
>> From: Dmitry Gutov <dmitry@gutov.dev>
>>
>> I've pushed it to master now. Let me know if it should be backported.
>
> Thanks, I see no need to backport it for now.
Closing this as completed.
Yuan
--- End Message ---