unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Comments in tree-sitter - Multiple languages
@ 2024-05-24 19:05 Pedro Prieto Alarcón
  0 siblings, 0 replies; only message in thread
From: Pedro Prieto Alarcón @ 2024-05-24 19:05 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

How can I configure the variable 'comment-start' for a tree-sitter mode
that supports multiple languages?

For example, in 'vue-ts-mode', I want to create comments with '//' in the
'<script>' section and '<!-- -->' comments in the '<template>' section.

I know the Emacs 'comment-start' variable can be used for that, but I can
only define one comment syntax for all regions. Can I set that variable
region-wide so that different regions (languages) get different values? Or
is there another method I am missing?

Thanks!


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-24 19:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-24 19:05 Comments in tree-sitter - Multiple languages Pedro Prieto Alarcón

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).