From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 Date: 6 Oct 2019 17:38:50 -0000 Organization: muc.de e.V. Message-ID: <20191006173850.60219.qmail@mail.muc.de> References: <000301cb4b81$c9b81560$5d284020$@net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="268138"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.3-RELEASE-p3 (amd64)) Cc: 6978@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 06 19:39:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHAVD-0017dI-NP for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 19:39:27 +0200 Original-Received: from localhost ([::1]:36075 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHAVC-0006Sa-IN for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 13:39:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39492) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHAUr-00069J-CU for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHAUq-0002Un-Eg for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:39:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37985) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHAUp-0002Tp-20; Sun, 06 Oct 2019 13:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iHAUo-0008Im-Uv; Sun, 06 Oct 2019 13:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 06 Oct 2019 17:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6978 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 6978-submit@debbugs.gnu.org id=B6978.157038353431887 (code B ref 6978); Sun, 06 Oct 2019 17:39:02 +0000 Original-Received: (at 6978) by debbugs.gnu.org; 6 Oct 2019 17:38:54 +0000 Original-Received: from localhost ([127.0.0.1]:46805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHAUg-0008IF-3j for submit@debbugs.gnu.org; Sun, 06 Oct 2019 13:38:54 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:11122 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iHAUd-0008I5-Pi for 6978@debbugs.gnu.org; Sun, 06 Oct 2019 13:38:52 -0400 Original-Received: (qmail 60220 invoked by uid 3782); 6 Oct 2019 17:38:50 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:168442 Archived-At: In article you wrote: > severity 6978 minor > found 6978 27.0.50 > quit > "Bob" writes: >> >> >> Emacs 23.1.97: >> >> >> >> When using the C++ scope operator "::", show-paren-mode gets confused: >> >> >> >> ------ Foo.cpp ------------------------------------ >> >> struct Foo1 {}; >> >> >> >> namespace X >> >> { >> >> struct Foo2 {}; >> >> >> >> template >> >> struct Bar; >> >> >> >> template<> >> >> struct Bar<::Foo1> // "(show-paren-mode)" does not match `>` to `<` >> >> { >> >> }; >> >> >> >> template<> >> >> struct Bar // "(show-paren-mode)" correctly matches `>` to `<` >> >> { >> >> }; >> >> } >> >> --------------------------------------------- > I can reproduce this on current master. This is a CC Mode bug. The pertinent < and > are not being marked with syntax-table text properties, hence can't be recognised as parens. I'll be looking into this. > Best regards, > Stefan Kangas -- Alan Mackenzie (Nuremberg, Germany).