[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax highlighting keywords starting with #
From: |
Stefan Monnier |
Subject: |
Re: Syntax highlighting keywords starting with # |
Date: |
Thu, 03 Nov 2005 11:12:44 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> 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