unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* C type fontification help
@ 2003-05-19 21:35 Kin Cho
  2003-05-19 22:42 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Kin Cho @ 2003-05-19 21:35 UTC (permalink / 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

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

end of thread, other threads:[~2003-05-22 17:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-19 21:35 C type fontification help Kin Cho
2003-05-19 22:42 ` Stefan Monnier
2003-05-22 17:42   ` Kin Cho

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