emacs-devel
[Top][All Lists]
Advanced

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

Re: Define treesit-font-lock-level as buffer local


From: Vincenzo Pupillo
Subject: Re: Define treesit-font-lock-level as buffer local
Date: Tue, 17 Dec 2024 12:31:21 +0100

Ciao Yuan,
I found a bug in python-ts-mode, it does not handle treesit-font-lock-level 
even as a list. The attached patch fixes this bug.

Thank you.

Vincenzo

In data sabato 14 dicembre 2024 12:14:02 Ora standard dell’Europa centrale, 
Vincenzo Pupillo ha scritto:
> In data domenica 8 dicembre 2024 08:44:25 Ora standard dell’Europa centrale,
> Yuan Fu ha scritto:
> > Ok, following the recent discussion, I implemented the original idea,
> > which
> > is an alist mapping major modes to font lock levels. The check is made
> > with
> > derived-mode-p, so c-mode should work for c-ts-mode too, but I still used
> > c-ts-mode in the example in the docstring since I don’t want to complicate
> > it. The change is pushed to master.
> > 
> > Yuan
> 
> Thank you Yuan!
> 
> Vincenzo


Attachment: 0001-python-ts-mode-now-handles-the-treesit-font-lock-lev.patch
Description: Text Data


reply via email to

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