bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parentheses in comments fontification bug


From: Robert Thorpe
Subject: Parentheses in comments fontification bug
Date: Sun, 13 Jun 2004 10:12:30 +0100

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? 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]