From: Alan Mackenzie <acm@muc.de>
To: Stefan Kangas <stefan@marxist.se>
Cc: 6978@debbugs.gnu.org
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 [thread overview]
Message-ID: <20191006173850.60219.qmail@mail.muc.de> (raw)
In-Reply-To: <mailman.1087.1570362019.2651.bug-gnu-emacs@gnu.org>
In article <mailman.1087.1570362019.2651.bug-gnu-emacs@gnu.org> you wrote:
> severity 6978 minor
> found 6978 27.0.50
> quit
> "Bob" <purchasebyemail1@comcast.net> 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<class _Y>
>>
>> struct Bar;
>>
>>
>>
>> template<>
>>
>> struct Bar<::Foo1> // "(show-paren-mode)" does not match `>` to `<`
>>
>> {
>>
>> };
>>
>>
>>
>> template<>
>>
>> struct Bar<Foo2> // "(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).
next prev parent reply other threads:[~2019-10-06 17:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 16:05 bug#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 Bob
2019-10-06 11:39 ` Stefan Kangas
[not found] ` <mailman.1087.1570362019.2651.bug-gnu-emacs@gnu.org>
2019-10-06 17:38 ` Alan Mackenzie [this message]
2019-10-06 18:56 ` Richard Copley
[not found] ` <mailman.1131.1570388227.2651.bug-gnu-emacs@gnu.org>
2019-10-06 19:16 ` Alan Mackenzie
2019-10-06 20:11 ` Alan Mackenzie
2019-10-06 20:21 ` Stefan Kangas
2019-10-11 19:32 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191006173850.60219.qmail@mail.muc.de \
--to=acm@muc.de \
--cc=6978@debbugs.gnu.org \
--cc=stefan@marxist.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).