[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package: lua-ts-mode
From: |
Eli Zaretskii |
Subject: |
Re: [ELPA] New package: lua-ts-mode |
Date: |
Sat, 29 Jul 2023 13:46:00 +0300 |
> From: john muhl <jm@pub.pink>
> Cc: theo@thornhill.no, emacs-devel@gnu.org
> Date: Thu, 27 Jul 2023 16:52:47 -0500
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > It isn't a prerequisite, no. It just would be nice to be able to
> > support both.
>
> Fair enough. I gave it a closer look and don’t think it’s possible to
> support even on its own. Try opening a file containing:
>
> print(1)
>
> Enable treesit-explore-mode and see:
>
> (call
> function: (variable name: (identifier))
> arguments: (ERROR ( (number) )) ; That ERROR node is erroneous
> (argument_list (string)))
>
> Those stray ERRORs are pervasive and all kinds of code end up with them
> in unexpected places. There may be other issues but this one is enough
> to make it unusable. I don’t think this is fixable on the Emacs side.
>
> Another problem is that in an empty buffer Emacs freezes when you start
> typing. The Azganoth grammar and t-e-m must be enabled for it to freeze.
> This might be fixable in Emacs but wouldn’t change the problem with
> misplaced ERROR nodes.
Thanks, if that grammar is buggy to the degree that we cannot use it
in Emacs, then we don't need to support it, of course.