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: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Yilkal Argaw <yilkalargawworkneh <at> gmail.com>
Cc: 52496 <at> debbugs.gnu.org
Subject: bug#52496: syntax highlighting problem on emacs shell-script mode
Date: Sun, 19 Dec 2021 13:54:50 +0100
[Message part 1 (text/plain, inline)]
Yilkal Argaw <yilkalargawworkneh <at> gmail.com> writes:

> I don't know exactly how to explain it but emacs comments most of a
> script if the script contains too many long strings. As an example
> look at the syntax highlighting of the script at
> https://gitlab.com/uppercat/tlbx/-/raw/master/tlbx and compare the
> syntax highlighting for it in vim and emacs.

You don't say what Emacs version this is with, or which parts you think
Emacs is displaying wrong.  Is it the heredoc thing that's wrong, or
something else in addition?

[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
It seems like sh-mode isn't interpreting that "@" as the end of the
heredoc.

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