GNU bug report logs - #52496
syntax highlighting problem on emacs shell-script mode

Previous Next

Package: emacs;

Reported by: Yilkal Argaw <yilkalargawworkneh <at> gmail.com>

Date: Wed, 15 Dec 2021 00:36:02 UTC

Severity: normal

Tags: moreinfo, patch

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yilkal Argaw <yilkalargawworkneh <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 52496 <at> debbugs.gnu.org, Andreas Schwab <schwab <at> linux-m68k.org>, Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Subject: bug#52496: syntax highlighting problem on emacs shell-script mode
Date: Tue, 21 Dec 2021 07:20:47 +0300
Yes, I agree.  I think this is enough for now until a refactor becomes
necessary.

On Mon, Dec 20, 2021 at 12:46 PM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>
> Kévin Le Gouguec <kevin.legouguec <at> gmail.com> writes:
>
> > So IIUC for here-documents anything is fair game except (1)
> > {single,double,back} quotes (2) metacharacters (3) backslashes and
> > comment openers (#); all of which can still be used if quoted or escaped
> > *on the opening line only*.
>
> Thanks.
>
> As far as I can see, sh-mode doesn't really try too hard to be correct
> here -- it accepts word constituents, but then adds back -/~._ which it
> has defined as punctuation in `sh-mode-syntax-table'.  So perhaps we
> should just continue doing that and add @, too, even though that's not
> very satisfactory.
>
> So I've now done that in Emacs 29.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.