[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Selective Font Lock Case Sensitivity
From: |
Jacob Gerlach |
Subject: |
Re: Selective Font Lock Case Sensitivity |
Date: |
Wed, 16 Apr 2014 19:46:38 -0700 (PDT) |
User-agent: |
G2/1.0 |
>> (lambda (limit)
>> (let ((case-fold-search t))
>> (re-search-forward ,(regexp-opt (cadr input)) limit t)))
This indeed fixed the expansion. This now expands to something that looks
right, but it still doesn't work.
I am trying to use an anchored matcher with a pre-form.
What I think I understand from the documentation is that I should end up with
something like:
("anchor"
(lambda (limit)
(let ((case-fold-search t))
(re-search-forward "keywords-re") limit t))
(pre-form)
nil
(0 font-lock-keyword-face))
What I don't understand is if the list as I've written it here is properly
formatted, or if I need to construct it as sub-lists, cons cells, etc.
Thanks for all the help so far, I hope it is not too tedious dealing with such
a lisp novice.