[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))
- Syntax highlighting keywords starting with #,
frodetj <=