GNU bug report logs - #65834
29.1; highlighting bug in CPerl mode: here-document false positive

Previous Next

Package: emacs;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Fri, 8 Sep 2023 21:30:02 UTC

Severity: minor

Found in version 29.1

Done: Harald Jörg <haj <at> posteo.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Vincent Lefevre <vincent <at> vinc17.net>
Cc: Harald Jörg <haj <at> posteo.de>, 65834 <at> debbugs.gnu.org
Subject: bug#65834: 29.1; highlighting bug in CPerl mode: here-document false positive
Date: Sun, 10 Sep 2023 00:45:37 -0700
Vincent Lefevre <vincent <at> vinc17.net> writes:

> Open a file containing the following code, in CPerl mode:
>
> # -*- mode: cperl -*-
> if ($t->[3]<<5) {
>   return 0;
> }
> # comment
>
> The contents are highlighted like a here-document starting at
> "return 0;" probably due to the "<<" (but this is a left shift,
> not a here-document declaration).
>
> GNU Emacs 27.1, 28.2 and 29.1 are affected.
>
> Note: I initially found when reading the "mailgraph" Perl script.

Copying in Harald Jörg.

> In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38,
>  cairo version 1.16.0) of 2023-08-30, modified by Debian built on
>  x86-csail-01
> Windowing system distributor 'The X.Org Foundation', version 11.0.12101008
> System Description: Debian GNU/Linux trixie/sid




This bug report was last modified 1 year and 223 days ago.

Previous Next


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