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