|
From: | Johan Bockgård |
Subject: | Re: glitches with font-lock-add-keywords |
Date: | Tue, 06 Jun 2006 05:10:55 +0200 |
User-agent: | Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) |
martin rudalics <rudalics@gmx.at> writes: > Assuming that the question mark is a symbol constituent and "(" and > ")" are open and close parenthesis characters you can try: > > (defvar my-extra-keywords > '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend) > ("\\<\\(XXX\\|xxx\\)\\>\\|\\_<\\(\\?\\?\\?\\)\\_>\\|(sp\\?)" . > 'my-extra-face))) The \_< ... \_> construct exists only in Emacs 22. -- Johan Bockgård
[Prev in Thread] | Current Thread | [Next in Thread] |