From: Nikolaj Schumacher <n_schumacher@web.de>
To: doyoucy@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to enable font lock for functions called by other functions
Date: Mon, 11 Aug 2008 22:03:58 +0200 [thread overview]
Message-ID: <m2ljz3tj2p.fsf@nschum.de> (raw)
In-Reply-To: <ee8dbe59-1524-4566-93ee-3f1c73e58b12@h17g2000prg.googlegroups.com> (doyoucy@gmail.com's message of "Mon\, 11 Aug 2008 03\:13\:50 -0700 \(PDT\)")
doyoucy@gmail.com wrote:
> For example:
> void foo1()
> {
> foo2();
> }
>
> The function foo1 has font-lock enabled and function foo2 is just
> plain text.
> So, is there any options to enable the font lock for inside fuunctions
> (foo2)?
You can use the following in your `c-mode-common-hook', though I'm sure
it breaks down in same cases.
(font-lock-add-keywords
nil `(("\\([[:alpha:]_][[:alnum:]_]*\\)(" 1 font-lock-function-name-face)))
regards,
Nikolaj Schumacher
next prev parent reply other threads:[~2008-08-11 20:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 10:13 How to enable font lock for functions called by other functions doyoucy
2008-08-11 18:19 ` Colin S. Miller
2008-08-11 20:03 ` Nikolaj Schumacher [this message]
[not found] ` <mailman.16402.1218485044.18990.help-gnu-emacs@gnu.org>
2008-08-12 2:03 ` doyoucy
2008-08-13 11:53 ` Nikolaj Schumacher
[not found] ` <mailman.16566.1218628405.18990.help-gnu-emacs@gnu.org>
2008-08-18 5:14 ` doyoucy
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=m2ljz3tj2p.fsf@nschum.de \
--to=n_schumacher@web.de \
--cc=doyoucy@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).