help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Syntax highlighting keywords starting with #


From: frodetj
Subject: Syntax highlighting keywords starting with #
Date: 3 Nov 2005 04:11:00 -0800
User-agent: G2/0.2

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]