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

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

bug#66732: closed (tree-sitter fontification doesn't update multi-line s


From: GNU bug Tracking System
Subject: bug#66732: closed (tree-sitter fontification doesn't update multi-line syntax reliably)
Date: Thu, 08 Feb 2024 01:41:02 +0000

Your message dated Wed, 7 Feb 2024 17:40:15 -0800
with message-id <2C0F59B3-E0E9-4F75-B3E9-06BC366E7F3A@gmail.com>
and subject line Re: bug#66732: tree-sitter fontification doesn't update 
multi-line syntax reliably
has caused the debbugs.gnu.org bug report #66732,
regarding tree-sitter fontification doesn't update multi-line syntax reliably
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
66732: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66732
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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 ---

reply via email to

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