emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax highlighting for eshell scripts?


From: Jim Porter
Subject: Re: Syntax highlighting for eshell scripts?
Date: Wed, 4 Sep 2024 13:29:11 -0700

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]