|
From: | Jambunathan K |
Subject: | Re: backquote quote pair notation: What does it mean in Emacsdocument? |
Date: | Thu, 20 Dec 2012 02:01:56 +0530 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Oleksandr Gavenko <gavenkoa@gmail.com> writes: > On 2012-12-18, Jambunathan K wrote: > >> Here is a simple one that I cooked up. It can be simplified and be made >> more elegant though. >> >> (add-hook 'Info-mode-hook >> (lambda nil >> ;; Add a FIXME face. >> (font-lock-add-keywords >> nil '(("\\(?:`[^']+'\\)" 0 'font-lock-variable-name-face t) >> ("\\(?:\"[^\"]*\"\\)" 0 'font-lock-string-face t))))) > > Why do you use "shy group" in refex? You reference to all excretion in any > case... Regexp is created with `rx-to-string'. Above recipe is something that works. You shouldn't dissect in to it too much. For my previous recipe on `rx-to-string', see http://lists.gnu.org/archive/html/help-gnu-emacs/2012-12/msg00085.html --
[Prev in Thread] | Current Thread | [Next in Thread] |