unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kin Cho <kin@neoscale.com>
Subject: C type fontification help
Date: 19 May 2003 14:35:03 -0700	[thread overview]
Message-ID: <7ir86u4o3c.fsf@neoscale.com> (raw)

Hi,

I need help fontifying "FOO(a)" as type and "bar" as variable below:

struct foo {
    FOO(a) bar;
};

I tried adding "FOO([^)]+)" to c-font-lock-extra-types but it
doens't help because c-font-lock-extra-types doens't expect word
delimiters.

Also I'd like to fontify "foobar" below as a variable.

void (*foobar)(char *);

The fontification is important to me because I'm using them to
extract semantic information from header files.

Thanks.

-kin

             reply	other threads:[~2003-05-19 21:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-19 21:35 Kin Cho [this message]
2003-05-19 22:42 ` C type fontification help Stefan Monnier
2003-05-22 17:42   ` Kin Cho

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=7ir86u4o3c.fsf@neoscale.com \
    --to=kin@neoscale.com \
    /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).