unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* keyword highlighting
@ 2004-09-09 21:26 Dan Boitnott
  2004-09-10 12:43 ` ken
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Boitnott @ 2004-09-09 21:26 UTC (permalink / raw)


I'm adding keyword highlighting to a new major mode I'm writing.  I'm 
having trouble getting one type to work.  I'd like to set any line that 
begins with "vms " to font-lock-constant face.  I thought something 
like this should work:

  ("^VMS.*$" . font-lock-constant-face)

But the lines don't highlight at all.  If I do:

("^VMS" . font-lock-constant-face)

the "VMS" is colored but the rest of the line isn't.  If I do this:

("^VMS...." . font-lock-constant-face)

the "VMS" and four characters after are colored.  This suggests the 
caret and the period are working as expected.  Is the engine matching 
un-greedily?  Any help would be appriciated.

Thanks,
Dan

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.2205.1094765546.1998.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2004-09-10 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 21:26 keyword highlighting Dan Boitnott
2004-09-10 12:43 ` ken
     [not found] <mailman.2205.1094765546.1998.help-gnu-emacs@gnu.org>
2004-09-10 15:13 ` FCC

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).