all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: Peter Oliver <p.d.oliver@mavit.org.uk>,
	Andrew De Angelis <bobodeangelis@gmail.com>,
	emacs-devel@gnu.org
Subject: Re: treesit: how to get it to parse multiple languages
Date: Mon, 18 Nov 2024 23:01:28 -0800	[thread overview]
Message-ID: <7B1579B0-BD87-4DB8-86B6-7139558AF2EF@gmail.com> (raw)
In-Reply-To: <87h68dvaca.fsf@mail.linkov.net>



> On Nov 11, 2024, at 11:28 AM, Juri Linkov <juri@linkov.net> wrote:
> 
>>> a major mode out
>>> there that already implements multiple-language functionalities using
>>> treesitter.
>>> 
>>> …
>>> 
>>> Do you all know if such a mode exists?
>> 
>> In Emacs 30, php-ts-mode?
>> 
>> https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/php-ts-mode.el
> 
> It would be nice if html-ts-mode supported embedded css-ts-mode and js-ts-mode
> the same way.

Yeah, it can be a good poster child for writing multi-lang modes. My time is very limited now, so anybody sees this, feel free to give it a try. And maybe document the code extensively too ;-)

Yuan


  reply	other threads:[~2024-11-19  7:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-03 18:28 treesit: how to get it to parse multiple languages Andrew De Angelis
2024-11-04 12:02 ` Eli Zaretskii
2024-11-05  6:46   ` Yuan Fu
2024-11-10 14:35     ` Andrew De Angelis
2024-11-10 22:47       ` Peter Oliver
2024-11-11 19:28         ` Juri Linkov
2024-11-19  7:01           ` Yuan Fu [this message]
2024-11-19 20:13             ` Vincenzo Pupillo
2024-11-24  5:09               ` Yuan Fu
2024-11-24 12:11                 ` Vincenzo Pupillo
2024-11-29  7:22                   ` Juri Linkov
2024-11-29  7:37                     ` Yuan Fu
2024-11-29 22:13                       ` Vincenzo Pupillo
2024-12-05  4:23                         ` Andrew De Angelis
2024-11-19  6:59       ` Yuan Fu

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=7B1579B0-BD87-4DB8-86B6-7139558AF2EF@gmail.com \
    --to=casouri@gmail.com \
    --cc=bobodeangelis@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=p.d.oliver@mavit.org.uk \
    /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.