GNU bug report logs - #11996
Perl mode indentation does not know about the \() construct

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 19 Jul 2012 23:49:02 UTC

Severity: minor

Tags: patch

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: 11996 <at> debbugs.gnu.org
Cc: jidanni <at> jidanni.org
Subject: Re: bug#11996: Perl mode indentation does not know about the \()
 construct
Date: Tue, 20 Sep 2022 11:20:42 -0300
[Message part 1 (text/plain, inline)]
tags 11996 patch
quit

jidanni <at> jidanni.org writes:


> Perl mode indentation does not know about the \() construct.
> [Perl mode defined in `perl-mode.el']
> It even reports
> forward-sexp: Scan error: "Unbalanced parentheses", 158, 1
>
> {
>     my @zzzz=(\%seen_couchrequsts, \%seen_people );
>     my @zzzz=\(%seen_couchrequsts, %seen_people );
> my @zzzz=(\%seen_couchrequsts, \%seen_people );
> }

I can reproduce this on current master.  It seems to me that this can be
fixed by modifying the syntax of the backslash character when it is used
as the "backslash operator" and not as an escape character.
[0001-Recognize-the-backslash-operator-in-perl-mode.patch (text/x-patch, attachment)]

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

Previous Next


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