From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nathan Trapuzzano Newsgroups: gmane.emacs.bugs Subject: bug#11216: 23.4; parenthesis matching breaks on certain complex expressions Date: Tue, 10 Apr 2012 20:18:47 -0400 Message-ID: <20120410201847.38e2af1f@nbtrap.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/IPj_DstTb1W+jIVqcaM6mX5" X-Trace: dough.gmane.org 1334103606 25142 80.91.229.3 (11 Apr 2012 00:20:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 00:20:06 +0000 (UTC) To: 11216@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 02:20:06 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SHlI5-0002dz-8E for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 02:20:05 +0200 Original-Received: from localhost ([::1]:57749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHlI4-0002WS-DF for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Apr 2012 20:20:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHlI0-0002Vj-VM for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 20:20:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHlHy-0006VV-Ot for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 20:20:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHlHy-0006Uh-JL for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 20:19:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SHlJ0-0007TM-4M for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 20:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nathan Trapuzzano Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Apr 2012 00:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11216 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133410361128658 (code B ref -1); Wed, 11 Apr 2012 00:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Apr 2012 00:20:11 +0000 Original-Received: from localhost ([127.0.0.1]:49612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHlIA-0007SB-UG for submit@debbugs.gnu.org; Tue, 10 Apr 2012 20:20:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39251) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHlI8-0007S1-3c for submit@debbugs.gnu.org; Tue, 10 Apr 2012 20:20:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHlH4-0005ku-3e for submit@debbugs.gnu.org; Tue, 10 Apr 2012 20:19:03 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:53433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHlH3-0005kq-Tx for submit@debbugs.gnu.org; Tue, 10 Apr 2012 20:19:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHlH1-0002VC-W7 for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 20:19:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHlGz-0005kf-NK for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 20:18:59 -0400 Original-Received: from oproxy9.bluehost.com ([69.89.24.6]:52014) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SHlGz-0005kT-6s for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 20:18:57 -0400 Original-Received: (qmail 22577 invoked by uid 0); 11 Apr 2012 00:18:53 -0000 Original-Received: from unknown (HELO host393.hostmonster.com) (66.147.240.193) by oproxy9.bluehost.com with SMTP; 11 Apr 2012 00:18:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbtrap.com; s=default; h=Content-Type:Mime-Version:Message-ID:Subject:To:From:Date; bh=kdumj+yyGJ1seRT/YJCHr48Xj1cvhh8l3wcOJGogwkY=; b=GoBB4cqjjqYfEeAeHJfj62vg1AX7bAM5hqIwfgnv48ngXeEavsxtptdS2Hn02NeUfxiJluoDGk0e8RxfsMN+V1mPV4lCM2W8YZmG1dnxdhxLEGO/VkgZOXr82cP+AAap; Original-Received: from 99-40-62-116.lightspeed.clmboh.sbcglobal.net ([99.40.62.116] helo=localhost.localdomain) by host393.hostmonster.com with esmtpa (Exim 4.76) (envelope-from ) id 1SHlGv-0000SA-Fw for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 18:18:53 -0600 X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-unknown-linux-gnu) X-Identified-User: {1585:host393.hostmonster.com:nbtrapco:nbtrap.com} {sentby:smtp auth 99.40.62.116 authed with nbtrap@nbtrap.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58740 Archived-At: --MP_/IPj_DstTb1W+jIVqcaM6mX5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Here's a complex regular expression that breaks parenthesis matching (and yes, that's a real regular expression generated from a real perl program). M[?+]?(?:-(?:[\x01-\x7f]*[\x00\x80-\xff]+))?[\x02-\x19\x22-\x27\x28-\x2e\x30-\x3c\x3e-\x40\x5b\x5d-\x7b\x7d-\xff]*H[?+]?(?:-(?:[\x01-\x7f]*[\x00\x80-\xff]+))?[\x02-\x19\x22-\x27\x28-\x2e\x30-\x3c\x3e-\x40\x5b\x5d-\x7b\x7d-\xff]*\=[?+]?(?:-(?:[\x01-\x7f]*[\x00\x80-\xff]+))?[\x02-\x19\x22-\x27\x28-\x2e\x30-\x3c\x3e-\x40\x5b\x5d-\x7b\x7d-\xff]*N[?+]?(?:-(?:[\x01-\x7f]*[\x00\x80-\xff]+))?[\x02-\x19\x22-\x27\x28-\x2e\x30-\x3c\x3e-\x40\x5b\x5d-\x7b\x7d-\xff]*I[\=\/\\]?[?+]?(?:-(?:[\x01-\x7f]*[\x00\x80-\xff]+))?[\x02-\x19\x22-\x27\x28-\x2e\x30-\x3c\x3e-\x40\x5b\x5d-\x7b\x7d-\xff]*N(?![\x21\x27\x2a\x2d\x2f\x3d\x41-\x5a\x5c\x61-\x7a\x7c]) (?