From: Jim Porter <jporterbugs@gmail.com>
To: the_wurfkreuz <the_wurfkreuz@proton.me>,
"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Syntax highlighting for eshell scripts?
Date: Wed, 4 Sep 2024 13:29:11 -0700 [thread overview]
Message-ID: <6950a5f1-45c7-4553-8382-a5959626c006@gmail.com> (raw)
In-Reply-To: <TWbnQtw5yELK1GpuJUQs3c4QN_uhNRTV9ANxThd-1GWf_YUW8mb_gtLFoYTHcp7IjRUJMkMlNaP57l4AtjuOkyG4uLxHF8GP9RdqdIE-qKs=@proton.me>
On 8/24/2024 11:46 PM, the_wurfkreuz wrote:
> Considering new recent additions to eshell syntax and the ability to run
> eshell scripts using the batch mode, maybe it makes sense to introduce
> some sort of a highlighting mode for writing eshell as a scripting language?
Yeah, this would be a nice feature (bonus if it fontifies the command
entered at an interpreter prompt too). I wonder if it would be feasible
to use the existing Eshell parser to help with fontification too; unlike
a lot of other major modes, Eshell already has a full parser for its
language in Emacs.
That might necessitate a big refactor of the Eshell parser (so that it
more cleanly splits out parsing and codegen), but that could also be
useful for improving some of the annoying corner cases in the existing
grammar.
prev parent reply other threads:[~2024-09-04 20:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-25 6:46 Syntax highlighting for eshell scripts? the_wurfkreuz
2024-09-04 20:29 ` Jim Porter [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6950a5f1-45c7-4553-8382-a5959626c006@gmail.com \
--to=jporterbugs@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=the_wurfkreuz@proton.me \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).