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

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

bug#11996: Perl mode indentation does not know about the \() construct


From: Mauro Aranda
Subject: bug#11996: Perl mode indentation does not know about the \() construct
Date: Tue, 20 Sep 2022 11:20:42 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

tags 11996 patch
quit

jidanni@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.

Attachment: 0001-Recognize-the-backslash-operator-in-perl-mode.patch
Description: Text Data


reply via email to

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