From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: Foo.html.erb -- major mode Date: Wed, 14 Dec 2022 09:08:35 +0100 Message-ID: <87zgbqtnjw.fsf@thornhill.no> References: <479CD2BE-EFB5-426C-9C60-D22DBB75745D@easesoftware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4691"; mail-complaints-to="usenet@ciao.gmane.io" To: Perry Smith , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 14 09:48:44 2022 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 1p5NRT-000101-Mg for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Dec 2022 09:48:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5Moq-0004UO-8p; Wed, 14 Dec 2022 03:08:48 -0500 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 1p5Mon-0004Qx-Ay for emacs-devel@gnu.org; Wed, 14 Dec 2022 03:08:45 -0500 Original-Received: from out-107.mta0.migadu.com ([2001:41d0:1004:224b::6b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Mol-0007Z7-9r for emacs-devel@gnu.org; Wed, 14 Dec 2022 03:08:45 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1671005317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mSHXlYjSDPHtlljtfHe4EFtNaC0VGc5t68arvXr/ecw=; b=M2yAe+z5CsJZLkOHhL62ggLTNq+tp4TUtRPu80NdDm7dpcZDKviS5zgVqbakdjT6b8F7g7 ONKk8kUGKc3LspgDl+XL8FXZwlqrJEnSfbHSfrtfLk7ibfwTGrIDW/VBd7lpOvuIJAUrZi ywYbduqIQqi+AYDGd+EtOk9GxiTWyfrCu2xq8gu3JvV0QK4mFo4x5cTW/Sv64PRuTS8jdm bbVgZ9JO9hZ9kogh1JiMt3ynrCbhZtIRBFZOL9IeAGr/RYNbeRK3Z7ywPg0X9K01fTd4ZS gx2N/WdxuotsECOuLT+1dX+I7ERf0K3EtXaSN5Gzw/r0tjdgcfr/HJLEgygLMg== In-Reply-To: <479CD2BE-EFB5-426C-9C60-D22DBB75745D@easesoftware.com> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:1004:224b::6b; envelope-from=theo@thornhill.no; helo=out-107.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:301375 Archived-At: Perry Smith writes: > I assume that no one yet has written a major mode using Tree Sitter > for Rail=E2=80=99s view files which combine HTML and erb (embedded ruby) = but > wanted to check. > > Will there be a naming convention for such modes? Currently I use the > existing web-mode package for this task. I think naming it > erb-ts-mode will be a mistake since erb is always going to be mixed in > with another =E2=80=9Clanguage=E2=80=9D. Perhaps html-erb-ts-mode ? > > Also, I=E2=80=99ve bumped into the Info page about using Tree Sitter for = multi > language modes. Is there an example of a mode that uses multiple > languages that I can look at for ideas? > > Last, since I=E2=80=99m relatively up to speed on Tree Sitter at this poi= nt, > is there any glaring need for a Tree Sitter based mode for a > particular language? > > Thank you, > Perry Did you consider using this [0] parser? Theo [0]: https://github.com/tree-sitter/tree-sitter-embedded-template