unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Syntax highlighting keywords starting with #
@ 2005-11-03 12:11 frodetj
  2005-11-03 16:05 ` frodetj
  2005-11-03 16:12 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: frodetj @ 2005-11-03 12:11 UTC (permalink / raw)


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

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

end of thread, other threads:[~2005-11-22 19:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-03 12:11 Syntax highlighting keywords starting with # frodetj
2005-11-03 16:05 ` frodetj
2005-11-03 16:12 ` Stefan Monnier
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

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