GNU bug report logs - #45114
perl-mode warns about mismatched parentheses wrongly

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 8 Dec 2020 05:46:01 UTC

Severity: minor

Tags: confirmed

Merged with 24299

Found in version 26.2

Full log


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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 45114 <at> debbugs.gnu.org
Subject: Re: bug#45114: perl-mode warns about mismatched parentheses wrongly
Date: Tue, 08 Dec 2020 15:09:51 +0800
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
EZ> I see nothing special about regular expressions in this context.  Parens matching is useful there as well as anywhere else.

/[

means we are entering characters that stand on their own, that _should
not be thought to match_ previous characters.

As I am entering the regexp, emacs should not tell me that

/[}

is wrong.




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

Previous Next


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