all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Avoiding Font-locking in comments
@ 2007-12-10  8:35 Nordlöw
  2007-12-14  9:31 ` Johan Bockgård
  0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2007-12-10  8:35 UTC (permalink / raw)
  To: help-gnu-emacs

How can I make my extra font locking in cc-mode be applied to the code
only and not inside the comments? Is there a shortcuts where I can
check if the context is (not) inside a comment or do I have to do it
the hard way by checking that we are not inside a /* ... */ or // ...
newline context?

Thanks in advance,
Nordlöw

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

* Re: Avoiding Font-locking in comments
  2007-12-10  8:35 Avoiding Font-locking in comments Nordlöw
@ 2007-12-14  9:31 ` Johan Bockgård
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Bockgård @ 2007-12-14  9:31 UTC (permalink / raw)
  To: help-gnu-emacs

"Nordlöw" <per.nordlow@gmail.com> writes:

> How can I make my extra font locking in cc-mode be applied to the code
> only and not inside the comments?

What do your additions look like?  The default behavior is to never
override existing fontification (in comments or elsewhere).

-- 
Johan Bockgård

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

end of thread, other threads:[~2007-12-14  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10  8:35 Avoiding Font-locking in comments Nordlöw
2007-12-14  9:31 ` Johan Bockgård

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.