GNU bug report logs - #45255
cperl-mode doesn't recognise the double diamond operator

Previous Next

Package: emacs;

Reported by: "E. Choroba" <choroba <at> matfyz.cz>

Date: Tue, 15 Dec 2020 14:21:01 UTC

Severity: normal

Tags: fixed

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


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

From: "E. Choroba" <choroba <at> matfyz.cz>
To: bug-gnu-emacs <at> gnu.org
Subject: cperl-mode doesn't recognise the double diamond operator
Date: Tue, 15 Dec 2020 15:20:13 +0100 (CET)
Perl 5.22 added the new form of the diamond operator <<>> (which uses the
three argument version of open under the hood).

Unfortunately, cperl-mode doesn't recognise it and treats it as a HERE-doc
start:

while (<<>>) {
This is displayed in the font-lock-string-face.
The here document ends with an empty line.
Pressing Tab doesn't indent the code.

Ch.




This bug report was last modified 4 years and 217 days ago.

Previous Next


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