all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: john muhl <jm@pub.pink>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Theodor Thornhill <theo@thornhill.no>, emacs-devel@gnu.org
Subject: Re: [ELPA] New package: lua-ts-mode
Date: Thu, 27 Jul 2023 08:34:45 -0500	[thread overview]
Message-ID: <87fs59nwef.fsf@pub.pink> (raw)
In-Reply-To: <831qgunew3.fsf@gnu.org>

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Wed, 26 Jul 2023 19:42:16 +0200
>> From: Theodor Thornhill <theo@thornhill.no>
>>
>> I'll take a look at the code a bit later, but is anything preventing
>> us from adding this in-tree?
>
> My thoughts exactly.

Sounds good. I’ll prepare a patch for Emacs.

> And another question: does this mode work with the other Lua grammar
> library I know about, https://github.com/Azganoth/tree-sitter-lua?

It works in the sense of nothing going horribly wrong if you try to use
it. You can still edit Lua files but due to differences in the trees and
node names the experience is somewhat degraded.

> If not, would it be possible to make it work with both?

Without having tried more than just swapping out the tree-sitter-lua.so
files it looks like it would be possible without much hassle.

I don’t think it’s worth any hassle though. The one I used is the same
as used by Neovim[1] and is already packaged for Alpine[2] and NixOS[3]
and is in the queue for Debian[4]. I’ll see about getting it added to
GNU Guix (which already has a number of other grammars).

Is working with both a prerequisite for inclusion or is there some other
reason to support them both? I’m not opposed but it doesn’t seem like an
important thing to do at this time.

1: https://github.com/nvim-treesitter/nvim-treesitter/blob/6aababfca4e3d72cb1e8fbbdac4115a5f88107d0/lua/nvim-treesitter/parsers.lua#L900
2: https://pkgs.alpinelinux.org/package/edge/community/x86/tree-sitter-lua
3: https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-lua.json
4: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034075



  reply	other threads:[~2023-07-27 13:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26 16:49 [ELPA] New package: lua-ts-mode john muhl
2023-07-26 17:42 ` Theodor Thornhill
2023-07-27  4:43   ` Eli Zaretskii
2023-07-27 13:34     ` john muhl [this message]
2023-07-27 19:06       ` Eli Zaretskii
2023-07-27 21:52         ` john muhl
2023-07-29 10:46           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fs59nwef.fsf@pub.pink \
    --to=jm@pub.pink \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=theo@thornhill.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.