From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Renaud Newsgroups: gmane.emacs.bugs Subject: bug#10590: c++-mode closing nested template angle braces breaks font-lock, indentation and show-paren-mode. Date: Mon, 23 Jan 2012 21:46:01 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6de0078ca95d004b73d2534 X-Trace: dough.gmane.org 1327373907 28944 80.91.229.12 (24 Jan 2012 02:58:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2012 02:58:27 +0000 (UTC) To: 10590@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 24 03:58:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RpWaU-0007oQ-Nt for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jan 2012 03:58:22 +0100 Original-Received: from localhost ([::1]:39360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpWaU-00012e-Be for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jan 2012 21:58:22 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpWXy-0000ou-R5 for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 21:55:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpWXx-0000On-OI for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 21:55:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpWXx-0000Oi-KF for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 21:55:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RpWYE-00019Q-Hy for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 21:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Matt Renaud Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Jan 2012 02:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10590 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.13273737384390 (code B ref -1); Tue, 24 Jan 2012 02:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jan 2012 02:55:38 +0000 Original-Received: from localhost ([127.0.0.1]:41167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpWXp-00018k-B5 for submit@debbugs.gnu.org; Mon, 23 Jan 2012 21:55:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59354) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpWOz-0000vw-DQ for submit@debbugs.gnu.org; Mon, 23 Jan 2012 21:46:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpWOb-0007PK-Gc for submit@debbugs.gnu.org; Mon, 23 Jan 2012 21:46:06 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:33079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpWOb-0007PG-F5 for submit@debbugs.gnu.org; Mon, 23 Jan 2012 21:46:05 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpWOa-0007xu-C3 for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 21:46:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpWOZ-0007P3-68 for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 21:46:04 -0500 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:54240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpWOZ-0007Oz-1i for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 21:46:03 -0500 Original-Received: by wera13 with SMTP id a13so1224336wer.0 for ; Mon, 23 Jan 2012 18:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=wnltHc2YAbT0uF5M9u+y6RlWisospKFLNmGrAC1lvBI=; b=nfc7UHiZ18Lknr7URqSXS9SYgWPLnF9UpckvNyH9j1RJ49m4QmxgEPNwkVnOnU6nvP 9hvMOYH8B/pfG/ffRey8Gd28iO/LUg803KSLX/0VwZmQCMbB+4V9yxwA83ANXov3dwqa GGU5P6WHgEQltQeSlxb1pYOCRJyB/N6AqNQp4= Original-Received: by 10.216.135.162 with SMTP id u34mr4498975wei.1.1327373161764; Mon, 23 Jan 2012 18:46:01 -0800 (PST) Original-Received: by 10.180.18.162 with HTTP; Mon, 23 Jan 2012 18:46:01 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 23 Jan 2012 21:55:35 -0500 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-Mailman-Approved-At: Mon, 23 Jan 2012 21:58:21 -0500 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:55942 Archived-At: --0016e6de0078ca95d004b73d2534 Content-Type: text/plain; charset=ISO-8859-1 *Emacs Version: *24.0.92.2 When writing C++ code with nested templates, putting two (or more) closing angle braces together causes the font-lock, show-paren-mode and indentation to break. Positioning point on any of the closing parentheses fails to show the matching opening brace which makes template meta-programs difficult to read. Any nested templates will cause this. The following is a simple example showing the 2 cases: template > struct foo // Indentation broken here... { }; int main() { std::vector> vv_int; // Font-lock broken here... return 0; } --0016e6de0078ca95d004b73d2534 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Emacs Version: 24.0.92.2

When writing C++ code with nested te= mplates, putting two (or more) closing angle braces together causes the fon= t-lock, show-paren-mode and indentation to break.=A0 Positioning point on a= ny of the closing parentheses fails to show the matching opening brace whic= h makes template meta-programs difficult to read.=A0 Any nested templates w= ill cause this.=A0 The following is a simple example showing the 2 cases:

template <typename T =3D st= d::vector<int>>
=A0 struct foo=A0=A0=A0 // Indentation broken h= ere...
=A0 {
=A0 };


int main()
{
=A0 std::vector<= std::vector<int>> vv_int; // Font-lock broken here...

=A0 return 0;
}


--0016e6de0078ca95d004b73d2534--