all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* font-lock regexp for complementary keywords
@ 2006-07-24 16:53 Dieter Wilhelm
  2006-07-25 16:15 ` Kevin Rodgers
       [not found] ` <mailman.4451.1153844221.9609.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Dieter Wilhelm @ 2006-07-24 16:53 UTC (permalink / raw)


Hi

I'd like to fontify Ansys keywords.  The solver accepts unique short
forms of the command keywords, the rest is ignored.  For example the
uniqe part of `/filname' is `/fil' and I'd like to fontify

/fil and
/filn and
/filna and
/filnam and
/filname and

as well.  The only idea I got so far is to do it in 5 separate
font-lock statements:

\\(/fil\\) 1 font-lock...
/fil\\(n\\) 1 fon...
/filn\\(a\\) 1 ...
/filna\\(m\\) 1 ...
/filnam\\(e\\) 1 ...

Very ugly and inefficient, isn't it?
Originally I thought that something like this

/fil\\(n\\|na\\|nam\\|name\\)

would work but rexexp-bulider doesn't show any matches for the
complementing alternatives.

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

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

end of thread, other threads:[~2006-08-16 12:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.4440.1153819115.9609.help-gnu-emacs@gnu.org>
2006-07-25 12:45 ` font-lock regexp for complementary keywords Johan Bockgård
2006-07-27  8:21   ` Dieter Wilhelm
2006-07-24 16:53 Dieter Wilhelm
2006-07-25 16:15 ` Kevin Rodgers
     [not found] ` <mailman.4451.1153844221.9609.help-gnu-emacs@gnu.org>
2006-08-13 18:37   ` David Combs
2006-08-16 12:18     ` Miles Bader

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.