From: Yuan Fu <casouri@gmail.com>
To: Andrew De Angelis <bobodeangelis@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: treesit: how to get it to parse multiple languages
Date: Mon, 18 Nov 2024 22:59:20 -0800 [thread overview]
Message-ID: <E9ED4C0F-0962-4ACD-8751-2A80D50020D6@gmail.com> (raw)
In-Reply-To: <CAP5CrM11u3Nz1ZsPfui0i-U1kfyVNO5Gs=VFmh7skPEWv4pzvA@mail.gmail.com>
> On Nov 10, 2024, at 6:35 AM, Andrew De Angelis <bobodeangelis@gmail.com> wrote:
>
> Thanks so much!
>
> I took a look at the Emacs 30 manual and it's a lot clearer, it's perfect!
> I think one thing that would truly be ideal is if there is a major mode out there that already implements multiple-language functionalities using treesitter. Seeing all the components in action would be quite helpful: the simple HTML examples are very clarifying but they can only do so much.
>
> Do you all know if such a mode exists? `(ripgrep-regexp "local-parser" source-directory)` on the master branch only shows me matches in `treesit.el` itself (and associated ChangeLog / manual).
> If it doesn't exist yet I'm happy to give it a knack when implementing the notebook mode. I might have run into some more questions then :)
As Peter has pointed out, php-ts-mode is a multi-language mode. And elixir-ts-mode too. You can grep for “:local”, or "treesit-range-rules”.
Yuan
prev parent reply other threads:[~2024-11-19 6:59 UTC|newest]
Thread overview: 14+ 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
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-11-19 6:59 ` Yuan Fu [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E9ED4C0F-0962-4ACD-8751-2A80D50020D6@gmail.com \
--to=casouri@gmail.com \
--cc=bobodeangelis@gmail.com \
--cc=eliz@gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).