unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* c-mode conundrum
@ 2004-07-16 23:26 J Krugman
  2004-07-22 20:04 ` Alan Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: J Krugman @ 2004-07-16 23:26 UTC (permalink / raw)





In my Emacs (v. 21.2, CC mode version 5.28), the following gets a
screwy fontification (the last line gets colored as if it were a
double-quoted string):

/* -*- mode: C -*- */
/*
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
()'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
*/

void foo(int bar);





The bizarre multiline comment is pretty much necessary.  Practically
any alteration to it will cause the fontification to correct itself.
Does anyone else experience the same problem?  If so, what could
be the reason?  Is there a workaround?  (Looking for a workaround
for this particular example would be silly, of course, but the
example is a distillation of a real world situation.)

TIA,

jill

-- 
To  s&e^n]d  me  m~a}i]l  r%e*m?o\v[e  bit from my a|d)d:r{e:s]s.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-22 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-16 23:26 c-mode conundrum J Krugman
2004-07-22 20:04 ` Alan Mackenzie

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