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