help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C type fontification help


From: Kin Cho
Subject: C type fontification help
Date: 19 May 2003 14:35:03 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

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 via email to

[Prev in Thread] Current Thread [Next in Thread]