all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Perry Smith <pedz@easesoftware.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Foo.html.erb -- major mode
Date: Tue, 13 Dec 2022 09:26:50 -0600	[thread overview]
Message-ID: <479CD2BE-EFB5-426C-9C60-D22DBB75745D@easesoftware.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

I assume that no one yet has written a major mode using Tree Sitter for Rail’s 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 “language”.  Perhaps html-erb-ts-mode ?

Also, I’ve 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’m relatively up to speed on Tree Sitter at this point, is there any glaring need for a Tree Sitter based mode for a particular language?

Thank you,
Perry


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2022-12-13 15:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-13 15:26 Perry Smith [this message]
2022-12-13 16:29 ` Foo.html.erb -- major mode Dmitry Gutov
2022-12-13 22:56   ` chad
2022-12-14  7:48 ` Yuan Fu
2022-12-14  8:08 ` Theodor Thornhill
2022-12-15 15:08 ` Dmitry Gutov

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=479CD2BE-EFB5-426C-9C60-D22DBB75745D@easesoftware.com \
    --to=pedz@easesoftware.com \
    --cc=emacs-devel@gnu.org \
    /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.