From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert Thorpe" Newsgroups: gmane.emacs.bugs Subject: Parentheses in comments fontification bug Date: Sun, 13 Jun 2004 10:12:30 +0100 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <062347F5EA06184999273868C1B4FD7F1A0E9B@server.Antenova.local> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1087117688 10453 80.91.224.253 (13 Jun 2004 09:08:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Jun 2004 09:08:08 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 13 11:07:58 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BZQy6-0004Y1-00 for ; Sun, 13 Jun 2004 11:07:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BZQyv-00052a-NX for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jun 2004 05:08:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BZQyr-0004zW-Oz for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2004 05:08:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BZQyq-0004y7-QH for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2004 05:08:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BZQyq-0004y0-Mf for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2004 05:08:44 -0400 Original-Received: from [193.128.174.131] (helo=antenova.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BZQxw-0005IB-4H for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2004 05:07:48 -0400 Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Parentheses in comments fontification bug Thread-Index: AcRRJo21wz55fu6VSquqrxGdlJnjnw== Original-To: X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list 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 Xref: main.gmane.org gmane.emacs.bugs:8187 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8187 In C mode there is a bug in the font-locking. Inside a comment of the /* */ sort, if you write an opening parenthesis on the first column of a line, then a few lines later fontification stops working properly. For example: /* Storage allocation and gc for GNU Emacs Lisp interpreter. Copyright (C) 1985,86,88,93,94,95,97,98,1999,2000,01,02,03,2004 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Emacs; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ works fine, but with this /* Storage allocation and gc for GNU Emacs Lisp interpreter. Copyright (C) 1985,86,88,93,94,95,97,98,1999,2000,01,02,03,2004 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Emacs; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ The fontification will stop working on the line starting "MERCHANTABILITY". If the "(at your option)" part is moved, fontification will work again. I'm using: GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO Should I report this bug to the maintainer of CC mode?=20