all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Multi-line font-lock parser
@ 2009-08-10 19:19 Teemu Likonen
  2009-08-10 21:32 ` Thierry Volpiatto
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Teemu Likonen @ 2009-08-10 19:19 UTC (permalink / raw)
  To: help-gnu-emacs

I'd like to write font-lock code which highlights the first line that
(1) is non-empty and (2) does not start with a "#" comment character.
This requires some multi-line parsing so plain regular expressions won't
suffice.

I'm too stupid to understand how to implement this kind of parsing. I
can write a code which finds such a line but I don't know how to
integrate it to font-lock. I don't understand the (info "(elisp) Font
Lock Multiline") manual either. So I'd _really_ appreciate if someone
posted an example code here.


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

end of thread, other threads:[~2009-08-18  1:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-10 19:19 Multi-line font-lock parser Teemu Likonen
2009-08-10 21:32 ` Thierry Volpiatto
     [not found] ` <mailman.4341.1249940353.2239.help-gnu-emacs@gnu.org>
2009-08-11  4:28   ` Teemu Likonen
2009-08-11  5:48     ` Thierry Volpiatto
     [not found]     ` <mailman.4364.1249970086.2239.help-gnu-emacs@gnu.org>
2009-08-11  6:18       ` Teemu Likonen
2009-08-11  7:55         ` Thierry Volpiatto
2009-08-18  1:29 ` Glenn Morris

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.