emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: treesit: how to get it to parse multiple languages


From: Yuan Fu
Subject: Re: treesit: how to get it to parse multiple languages
Date: Sat, 23 Nov 2024 21:09:39 -0800


> On Nov 19, 2024, at 12:13 PM, Vincenzo Pupillo <v.pupillo@gmail.com> wrote:
> 
> In data martedì 19 novembre 2024 08:01:28 Ora standard dell’Europa centrale, 
> Yuan Fu ha scritto:
>>> 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-mo
>>>> de.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 ;-)
> 
> It's almost done (it's called mhtml-ts-mode), I hope to submit a patch within 
> the next week.
> 
> Vincenzo

That’s awesome!

Yuan 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]