GNU bug report logs - #17538
24.3; sh-mode comment font-lock sees "\ " as whitespace instead of as character which breaks comment highlighting.

Previous Next

Package: emacs;

Reported by: arne.babenhauserheide <at> kit.edu

Date: Wed, 21 May 2014 08:49:02 UTC

Severity: minor

Tags: fixed

Found in version 24.3

Fixed in version 27.1

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

Bug is archived. No further changes may be made.

Full log


Message #8 received at 17538 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Arne Babenhauserheide \(IMK\)" <arne.babenhauserheide <at> kit.edu>
Cc: 17538 <at> debbugs.gnu.org
Subject: Re: 24.3; sh-mode comment font-lock sees "\ " as whitespace instead
 of as character which breaks comment highlighting.
Date: Wed, 30 Oct 2019 15:40:09 +0100
"Arne Babenhauserheide (IMK)" <arne.babenhauserheide <at> kit.edu> writes:

> 24.3; sh-mode comment font-lock sees "\ " as whitespace instead of as
> character which breaks comment highlighting.
>
> to reproduce:
>
> create a new buffer with the following content:
> echo -n \ # no comment
>
> M-x sh-mode
>
> if you run this in the shell, it (correctly) echoes the comment, so the
> part after the # should not be highlighted as comment.
>
> To make that a comment, it needs two spaces after the \:
>
> echo -n \  # mind AND KEEP the double-space! The first one is escaped!

This should now work better in Emacs 27.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 210 days ago.

Previous Next


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