From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: lua-ts-mode Date: Thu, 27 Jul 2023 22:06:13 +0300 Message-ID: <83cz0dkwd6.fsf@gnu.org> References: <87o7jyd3bs.fsf@pub.pink> <831qgunew3.fsf@gnu.org> <87fs59nwef.fsf@pub.pink> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23200"; mail-complaints-to="usenet@ciao.gmane.io" Cc: theo@thornhill.no, emacs-devel@gnu.org To: john muhl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 27 21:07:24 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qP6Ka-0005qL-3O for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Jul 2023 21:07:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qP6Ir-0004JS-Mk; Thu, 27 Jul 2023 15:05:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qP6Ik-0004IE-2d for emacs-devel@gnu.org; Thu, 27 Jul 2023 15:05:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qP6Ii-0000At-SX; Thu, 27 Jul 2023 15:05:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=fSO0fx7dTH+Q/gZ4PwbOkPOshW1KXJtPxCkPT5Ot4JQ=; b=SJC5v3IHfxwkQECCbzoY oiGSiqJn6XY+N2sReb134eODy67Mpk451yVBQXPNGWmyCr+RiP5XzWCYNjkLzHOjtcjCPtUjYXDK3 3CyZAuefPvNoWQmjreutLN/VoGdL7YIeIGXufxm/N8CVvmig8t8ubdn1HGK8fEtvCnyi+wvlSc7i0 gahx86NMmJHM0bJZs4bYj9cDV0u1qog0cVKBkGIKhAga0fL9YbunSaNIMYJOYC8uKI2OlQJUQOO46 ogK5cwpZI1bH5zB6MLqNPYf0bTO0MHqSkYaPQ/2qPV4FI5E72DYsK7eSaig+w93mFB5PBJeVCGz9F TV+DZ+Plk5r+ZQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qP6Ie-0006D4-Im; Thu, 27 Jul 2023 15:05:28 -0400 In-Reply-To: <87fs59nwef.fsf@pub.pink> (message from john muhl on Thu, 27 Jul 2023 08:34:45 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308170 Archived-At: > From: john muhl > Cc: Theodor Thornhill , emacs-devel@gnu.org > Date: Thu, 27 Jul 2023 08:34:45 -0500 > > Eli Zaretskii writes: > > > 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? It isn't a prerequisite, no. It just would be nice to be able to support both.