From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Syntax highlighting keywords starting with #
Date: Thu, 03 Nov 2005 11:12:44 -0500 [thread overview]
Message-ID: <87hdatyale.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 1131019860.252451.281450@g44g2000cwa.googlegroups.com
> How do I do that? I have a script language where all the keywords start
> with #. I would like to highlight these. The regexp #[A-Z] does not
> work. The regexp [R#][A-Z]* will highlight "words" like RA, RAB, RZZ
> etc, but not #A or anything else starting with #.
> This does not work:
> (defconst psc-font-lock-keywords
> (list
> '("\\<[#R][A-Z]*\\>" . font-lock-builtin-face)
> '("\\('\\w*'\\)" . font-lock-variable-name-face))
No wonder: this only defines a variable. Where is this variable used?
Stefan
next prev parent reply other threads:[~2005-11-03 16:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-03 12:11 Syntax highlighting keywords starting with # frodetj
2005-11-03 16:05 ` frodetj
2005-11-03 16:12 ` Stefan Monnier [this message]
2005-11-03 19:55 ` frodetj
2005-11-04 3:43 ` Ian Zimmerman
[not found] ` <mailman.13898.1131075812.20277.help-gnu-emacs@gnu.org>
2005-11-04 11:27 ` Frode
2005-11-22 19:53 ` Stefan Monnier
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=87hdatyale.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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).