From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: cperl-mode: paren-bounce vs (dQuotes in regexps) Date: 27 Jul 2004 01:21:12 -0400 Organization: PANIX -- Public Access Networks Corp. Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1090905731 18690 80.91.224.253 (27 Jul 2004 05:22:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 05:22:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 07:22:03 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BpKPb-0000qt-00 for ; Tue, 27 Jul 2004 07:22:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpKSf-00030D-KB for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2004 01:25:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!panix3.panix.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader2.panix.com 1090905673 2729 166.84.1.3 (27 Jul 2004 05:21:13 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 27 Jul 2004 05:21:13 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:124481 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19817 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19817 Subject: cperl-mode: paren-bounce vs (dQuotes in regexps) (emacs 21.2) $gBoundaryTag = $2 if ( $gCurLine m/^(\s+boundary="--)([0-9]+)"$/ ); Under text-mode, the above bounces fine -- leftmost "(" vs rightmost ")". But not under cperl-mode (try it) -- you'll get the rightmost ")" matching the 2nd-from-the-left "(". Just to play around, I removed all double-quotes: $gBoundaryTag = $2 if ( $gCurLine m/^(\s+boundary=--)([0-9]+)$/ ); , and it worked fine. Here, I tried wrapping each dquote within a char-class (hoping that doing so would "hide" it): $gBoundaryTag = $2 if ( $gCurLine m/^(\s+boundary=["]--)([0-9]+)["]$/ ); , but nope, no such luck. Same (incorrect) matching as in the original. Mismatching on the paren-bouncing hurts, since I (and everyone else, I'm sure) like to rely on the paren-bouncing for detecting coding-errors. Suggestions on how to handle this? Thanks! David