emacs-devel
[Top][All Lists]
Advanced

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

Re: Make Heredocs a first class citizen


From: Stefan Monnier
Subject: Re: Make Heredocs a first class citizen
Date: Mon, 10 Jan 2022 14:57:19 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> It got me thinking that it would be nice is emacs could provide syntax
> highlighting for heredocs in the same way it does for multi-line string and
> multi line comments as syntactic constructs.

In the abstract I agree, but I'm not sure how easy it is and how much
can really be shared.  I think every language has slightly different
rules about how (and where) a heredoc starts, so I suspect it'll be hard
to share that part.  And the "match the end" part is the easy part
anyway, so there's a risk that sharing it may not bring very
much benefit.


        Stefan




reply via email to

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