[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: perl-ts-mode available?
From: |
Jens Schmidt |
Subject: |
Re: perl-ts-mode available? |
Date: |
Sat, 7 Oct 2023 20:10:55 +0200 |
User-agent: |
Mozilla Thunderbird |
On 2023-10-05 04:50, hw wrote:
> Hi,
>
> is a treesitter mode for perl available (somewhere)? Or is one about
> to be created?
>
> I'd venture to write one, but looking at [1] tells me that I don't
> have a clue how to even begin such an endeavor.
>
>
> [1]: /usr/local/share/emacs/30.0.50/lisp/progmodes/c-ts-mode.el.gz
Harald Jörg, the (almost?) maintainer of cperl-mode has started one
on
https://github.com/HaraldJoerg/emacs-perl-ts-mode
but it's very basic so far (as he notes himself!) and does syntax
highlighting only, as far as I can see. Harald also comments on
the treesitter approach for Perl at the end of this post, btw:
https://yhetil.org/emacs-bugs/878r8wa67e.fsf@oook.m.uunet.de/
Plus, as others on this thread have already mentioned, there is no
fully operable treesitter grammar for Perl yet. The one on
https://github.com/tree-sitter-perl/tree-sitter-perl
seems to be the best bet so far.