|
From: | Michael Heerdegen |
Subject: | Re: Including tex commands in a list |
Date: | Thu, 28 Jan 2021 22:19:54 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
steve-humphreys@gmx.com writes: > I am using font lock to highlight keywords in a minor mode. > Have changed from using "concat" to using "rx" as you suggested. > However it does not seem equivalent. > > (defconst crucible-mtksy-keywords > `(;; Greek > (,(concat "\\\\\\<\\(alpha\\|beta\\|chi\\|delta\\|" > "Delta\\|epsilon\\|varepsilon\\|eta\\|" > "gamma\\|Gamma\\|iota\\|kappa \\|" > "lambda\\|Lambda\\|mu\\|nu\\|" > "omega\\|Omega\\|phi\\|varphi\\|" > "Phi\\|pi\\|varpi\\|Pi\\|" > "psi\\|Psi\\|rho\\|varrho\\|" > "sigma\\|varsigma\\|Sigma\\|tau\\|" > "theta\\|vartheta\\|Theta\\|upsilon\\|" > "Upsilon\\|xi\\|Xi\\|zeta\\)\\>") > (0 'crucible-mtksy-tfc))) > "Fontification for letters and symbols.") How does your rx version look like? Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |