From: martin rudalics <rudalics@gmx.at>
To: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
Cc: bug-cc-mode@gnu.org, Alan Mackenzie <acm@muc.de>,
bug-gnu-emacs@gnu.org, maechler@stat.math.ethz.ch
Subject: Re: font lock problem in C mode
Date: Fri, 15 Jun 2007 22:27:02 +0200 [thread overview]
Message-ID: <4672F616.5030103@gmx.at> (raw)
In-Reply-To: <E1HzFZ5-0005gT-Ts@deldel.damtp.cam.ac.uk>
> Put the following C comment into a file, called e.g. "s.c"
>
> /**
> * Simple comment.
> */
>
> and then do:
>
> $emacs -q s2.c
>
> The comment is fontified as a "string", rather than a "comment".
It is fontified as a "doc-string" (if you customize `font-lock-doc-face'
you will see the difference).
> If I
> delete the 2nd asterisk on the first line, the font switches correctly
> to be fontified as a comment.
It is a "feature". Alan Mackenzie will explain this carefully and in
full detail ... Alan, good evening, it's me again ;-)
next prev parent reply other threads:[~2007-06-15 20:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-15 17:26 font lock problem in C mode Stephen Eglen
2007-06-15 20:27 ` martin rudalics [this message]
2007-06-15 20:56 ` Jason Rumney
2007-06-16 9:37 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4672F616.5030103@gmx.at \
--to=rudalics@gmx.at \
--cc=S.J.Eglen@damtp.cam.ac.uk \
--cc=acm@muc.de \
--cc=bug-cc-mode@gnu.org \
--cc=bug-gnu-emacs@gnu.org \
--cc=maechler@stat.math.ethz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).