From: Dan Boitnott <dboitnot@fastmail.fm>
Subject: keyword highlighting
Date: Thu, 9 Sep 2004 16:26:46 -0500 [thread overview]
Message-ID: <F40E192E-02A6-11D9-AF2E-000D932E24AA@fastmail.fm> (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
next reply other threads:[~2004-09-09 21:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-09 21:26 Dan Boitnott [this message]
2004-09-10 12:43 ` keyword highlighting ken
[not found] <mailman.2205.1094765546.1998.help-gnu-emacs@gnu.org>
2004-09-10 15:13 ` FCC
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=F40E192E-02A6-11D9-AF2E-000D932E24AA@fastmail.fm \
--to=dboitnot@fastmail.fm \
/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).