[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: |
Mon, 18 Nov 2024 22:59:20 -0800 |
> 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
- Re: treesit: how to get it to parse multiple languages, (continued)
- Re: treesit: how to get it to parse multiple languages, Andrew De Angelis, 2024/11/10
- Re: treesit: how to get it to parse multiple languages, Peter Oliver, 2024/11/10
- Re: treesit: how to get it to parse multiple languages, Juri Linkov, 2024/11/11
- Re: treesit: how to get it to parse multiple languages, Yuan Fu, 2024/11/19
- Re: treesit: how to get it to parse multiple languages, Vincenzo Pupillo, 2024/11/19
- Re: treesit: how to get it to parse multiple languages, Yuan Fu, 2024/11/24
- Re: treesit: how to get it to parse multiple languages, Vincenzo Pupillo, 2024/11/24
- Re: treesit: how to get it to parse multiple languages, Juri Linkov, 2024/11/29
- Re: treesit: how to get it to parse multiple languages, Yuan Fu, 2024/11/29
- Re: treesit: how to get it to parse multiple languages, Vincenzo Pupillo, 2024/11/29
- Re: treesit: how to get it to parse multiple languages,
Yuan Fu <=