From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kin Cho Newsgroups: gmane.emacs.help Subject: C type fontification help Date: 19 May 2003 14:35:03 -0700 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7ir86u4o3c.fsf@neoscale.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053382294 2115 80.91.224.249 (19 May 2003 22:11:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 May 2003 22:11:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue May 20 00:11:27 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Hsqs-0000X8-00 for ; Tue, 20 May 2003 00:11:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19HsI7-0006E8-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 19 May 2003 17:35:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!12.24.46.66!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 12.24.46.66 Original-X-Trace: fu-berlin.de 1053380107 28619568 12.24.46.66 (16 [151019]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:113404 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9899 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9899 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