From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#5422: syntax highlighting bug Date: Mon, 03 Oct 2011 16:59:17 -0400 Message-ID: References: <201001191321.30279.blew@astro.uni.torun.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1317675589 28510 80.91.229.12 (3 Oct 2011 20:59:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2011 20:59:49 +0000 (UTC) Cc: 5422@debbugs.gnu.org To: blew@astro.uni.torun.pl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 22:59:45 2011 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 1RApc0-0007MB-Ql for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2011 22:59:45 +0200 Original-Received: from localhost ([::1]:33417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RApc0-0003ky-F5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2011 16:59:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RApbx-0003kf-91 for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2011 16:59:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RApbv-00044s-2c for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2011 16:59:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RApbt-000441-AR; Mon, 03 Oct 2011 16:59:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RApdF-0006Ww-Ki; Mon, 03 Oct 2011 17:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 03 Oct 2011 21:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5422 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 5422-submit@debbugs.gnu.org id=B5422.131767564825072 (code B ref 5422); Mon, 03 Oct 2011 21:01:01 +0000 Original-Received: (at 5422) by debbugs.gnu.org; 3 Oct 2011 21:00:48 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RApd1-0006WD-36 for submit@debbugs.gnu.org; Mon, 03 Oct 2011 17:00:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RApcx-0006W4-Uk for 5422@debbugs.gnu.org; Mon, 03 Oct 2011 17:00:45 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RApbZ-00080w-FO; Mon, 03 Oct 2011 16:59:17 -0400 X-Spook: halcon gamma credit card Saddam Hussein UOP class X-Ran: pno52tH>rfUlILKmi7cH.'s\#iFs/CSvnvYG]>r;=M[RbD'SHIkh?{!)<"waJpAGoja&[4 X-Hue: magenta X-Attribution: GM In-Reply-To: <201001191321.30279.blew@astro.uni.torun.pl> (Bartosz Lew's message of "Tue, 19 Jan 2010 13:21:30 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 03 Oct 2011 17:01:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:52130 Archived-At: Bartosz Lew wrote: > This is just to report on some minor C++ syntax highlighting problem > in emacs. > > when I write: > > if (a < b->c()) { do this; } else { do that; } > > two two things go wrong: > 1) parentheses matching doesn't work correctly > emacs matches the closing bracket of the if condition with the > "<" - "smaller > than" sign in the if condition. > > 2) the automatic positioning of any code written below gets confused due to > this parentheses matching problem. > > I use: > > GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.6) > of 2009-09-29 on x86-7.fedora.phx.redhat.com I am unable to reproduce this in any version of Emacs, including 23.1. If you still see the problem in the latest release, please send a complete example starting from emacs -Q. (There seem to have been some fixes in this area, eg http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4847 )