|
From: | Dmitry Gutov |
Subject: | Re: Adding jsdoc support to js-ts-mode |
Date: | Sat, 15 Jun 2024 01:48:37 +0300 |
User-agent: | Mozilla Thunderbird |
On 14/06/2024 15:39, Damien Cassou wrote:
Dmitry Gutov<dmitry@gutov.dev> writes:You could try adding a custom rule which applies highlights to specific ranges. The function to call is treesit-fontify-with-override.I've just opened bug#71550 with a patch to add jsdoc support to `js-ts-mode'. It seems like using `treesit-fontify-with-override' wasn't necessary after all in the master branch.
Makes sense - if the grammar parses those regions into individual nodes, it's best to use the common highlighting dsl, of course.
I'll check it out a bit later, thank you, if nobody beats me to it.
[Prev in Thread] | Current Thread | [Next in Thread] |