bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#17538: 24.3; sh-mode comment font-lock sees "\ " as whitespace inste


From: Lars Ingebrigtsen
Subject: bug#17538: 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

"Arne Babenhauserheide (IMK)" <arne.babenhauserheide@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





reply via email to

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