all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Damien Cassou <damien@cassou.me>
To: Dmitry Gutov <dmitry@gutov.dev>, emacs-devel@gnu.org
Cc: Yuan Fu <casouri@gmail.com>
Subject: Re: Adding jsdoc support to js-ts-mode
Date: Fri, 14 Jun 2024 14:39:50 +0200	[thread overview]
Message-ID: <87ikybem09.fsf@cassou.me> (raw)
In-Reply-To: <c0e23fa8-277a-4c8b-ab30-ea122012d5b8@gutov.dev>

Hi Dmitry,

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.

>>    (setq-local treesit-language-at-point-function #js-ts-language-at-point)
> Seems like this needs ' after #.

Indeed, thank you!

Thank you for your help

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



  reply	other threads:[~2024-06-14 12:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-07  7:55 Adding jsdoc support to js-ts-mode Damien Cassou
2024-06-09  3:02 ` Dmitry Gutov
2024-06-14 12:39   ` Damien Cassou [this message]
2024-06-14 22:48     ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ikybem09.fsf@cassou.me \
    --to=damien@cassou.me \
    --cc=casouri@gmail.com \
    --cc=dmitry@gutov.dev \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.