GNU bug report logs - #6391
23.2; Wrong face with here-docs in sh-mode

Previous Next

Package: emacs;

Reported by: Ralf Doering <rdoering <at> netsys-it.de>

Date: Thu, 10 Jun 2010 15:53:02 UTC

Severity: minor

Tags: confirmed

Merged with 46501

Found in versions 23.2, 25.2, 26.3

Full log


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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Ralf Doering <rdoering <at> netsys-it.de>, 6391 <at> debbugs.gnu.org
Subject: Re: bug#6391: 23.2; Wrong face with here-docs in sh-mode
Date: Fri, 11 Jun 2010 10:22:49 +0200
Glenn Morris <rgm <at> gnu.org> writes:

> Ralf Doering wrote:
>
>> still displayed with sh-heredoc face. This seems to be caused by '-'
>> used in the here-doc marker, as changing "<<-+++" to "<<+++" displays
>> the right face after the here doc. However, '<<-' is valid and needed in my
>> case.
>
> It works fine with a more traditional delimiter such as "EOF".
> I'd guess there is a regexp-quote issue, or perhaps a character syntax
> issue, with your chosen "+++".

See sh-here-doc-open-re.  Only delimiters consisting of word characters
are recognized if unquoted.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 2 years and 361 days ago.

Previous Next


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