unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Syntax highlighting for eshell scripts?
@ 2024-08-25  6:46 the_wurfkreuz
  2024-09-04 20:29 ` Jim Porter
  0 siblings, 1 reply; 2+ messages in thread
From: the_wurfkreuz @ 2024-08-25  6:46 UTC (permalink / raw)
  To: emacs-devel@gnu.org

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

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?

[-- Attachment #2: Type: text/html, Size: 395 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Syntax highlighting for eshell scripts?
  2024-08-25  6:46 Syntax highlighting for eshell scripts? the_wurfkreuz
@ 2024-09-04 20:29 ` Jim Porter
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Porter @ 2024-09-04 20:29 UTC (permalink / raw)
  To: the_wurfkreuz, emacs-devel@gnu.org

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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-04 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-25  6:46 Syntax highlighting for eshell scripts? the_wurfkreuz
2024-09-04 20:29 ` Jim Porter

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).