|
From: | Stefan Monnier |
Subject: | Re: Tree-sitter integration in python.el |
Date: | Tue, 11 Oct 2022 18:18:56 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>> One suggestion then is to allow attaching some “metadata” to the >> fontification rules in `treesit-font-lock-rules'. For instance, >> declare that a rule has :kind function or :level 2. Exactly. > I’ve added support for :level in treesit-font-lock-rules, yes ;-) I'd *much* prefer `:kind` over `:level` because it provides more information. I suggested in my other message how that `:kind` info could be (re)mapped to a level so users can provide a kind of baseline busy-ness level. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |