From: Andrew De Angelis <bobodeangelis@gmail.com>
To: Vincenzo Pupillo <v.pupillo@gmail.com>
Cc: Juri Linkov <juri@linkov.net>, Yuan Fu <casouri@gmail.com>,
emacs-devel@gnu.org, Peter Oliver <p.d.oliver@mavit.org.uk>
Subject: Re: treesit: how to get it to parse multiple languages
Date: Wed, 4 Dec 2024 23:23:06 -0500 [thread overview]
Message-ID: <CAP5CrM2gkkvyjLq+sHarZCvh4VgA2BEhOFVrXkem5yoomxH-kw@mail.gmail.com> (raw)
In-Reply-To: <2121596.YKUYFuaPT4@fedora>
[-- Attachment #1: Type: text/plain, Size: 1675 bytes --]
Thanks a lot Vincenzo! Excited to take a deeper look at it.
By the way, I did start working on a possible python-notebook mode, with
planned multi-language (markdown and python) support:
https://github.com/andrewdea/enb
Progress has been a bit slow due to other commitments: so far I only have a
rudimentary parser that 'renders' the JSON into a markdown/python buffer.
But I'm hoping to add more functionalities over the coming months.
Thank you all again for all the help on this.
On Fri, Nov 29, 2024 at 5:13 PM Vincenzo Pupillo <v.pupillo@gmail.com>
wrote:
> In data venerdì 29 novembre 2024 08:37:28 Ora standard dell’Europa
> centrale,
> Yuan Fu ha scritto:
> > > On Nov 28, 2024, at 11:22 PM, Juri Linkov <juri@linkov.net> wrote:
> > >>> That’s awesome!
> > >>
> > >> It's pretty much ready, the only thing I'm missing is the ability to
> > >> create an Imenu with symbols from both HTML and the other embedded
> > >> languages. I have tried a few approaches but it seems that it can only
> > >> be done for the main language. Is there any way to do something like
> > >> that?
> > >
> > > Imenu is a small detail that could be figured out after pushing your
> main
> > > work.
> > Oops, sorry for the late reply. Lets’ do this: I’ll extend
> > treesit-simple-imenu to support multi-language. Once we have that you can
> > add imenu support for your new mode.
> Thank you Yuan.
> I just submitted mhtml-ts-mode for inclusion.
> Please take a look at bug #74610.
> @Andrew: I tried to explain as best as I can how to write a major-mode
> that
> handles multiple languages, check it out.
>
> Vincenzo
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 2306 bytes --]
next prev parent reply other threads:[~2024-12-05 4:23 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
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 [this message]
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
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=CAP5CrM2gkkvyjLq+sHarZCvh4VgA2BEhOFVrXkem5yoomxH-kw@mail.gmail.com \
--to=bobodeangelis@gmail.com \
--cc=casouri@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=juri@linkov.net \
--cc=p.d.oliver@mavit.org.uk \
--cc=v.pupillo@gmail.com \
/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).