From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Separating // and /**/ comment fontification
Date: Wed, 15 Jun 2005 01:30:06 -0400 [thread overview]
Message-ID: <87y89cw5n9.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.1.1118779995.2857.help-gnu-emacs@gnu.org
> (setq font-lock-syntactic-face-function
> (lambda (state)
> (if (nth 3 state) font-lock-string-face
> (if (nth 7 state) font-lock-other-comment-face
> font-lock-comment-face))))
> and that should do what I want. Though on first attempt it doesn't seem to.
Make sure you have a variable `font-lock-other-comment-face' whose value is
a symbol (a face). Or otherwise try
(setq font-lock-syntactic-face-function
(lambda (state)
(if (nth 3 state) font-lock-string-face
(if (nth 7 state) 'font-lock-other-comment-face
font-lock-comment-face))))
-- Stefan
next parent reply other threads:[~2005-06-15 5:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1.1118779995.2857.help-gnu-emacs@gnu.org>
2005-06-15 5:30 ` Stefan Monnier [this message]
[not found] <mailman.3751.1118182395.25862.help-gnu-emacs@gnu.org>
2005-06-07 23:00 ` Separating // and /**/ comment fontification Stefan Monnier
2005-06-14 19:13 ` Ryan Bowman
2005-06-14 20:10 ` Ryan Bowman
2005-06-07 22:09 Ryan Bowman
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=87y89cw5n9.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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.
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).