unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Parentheses in comments fontification bug
@ 2004-06-13  9:12 Robert Thorpe
  0 siblings, 0 replies; only message in thread
From: Robert Thorpe @ 2004-06-13  9:12 UTC (permalink / raw)


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? 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-13  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-13  9:12 Parentheses in comments fontification bug Robert Thorpe

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).