diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-01-15 23:57:34 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-01-16 00:07:35 +0000 |
commit | 19c1c3e4797bc7ad1805910cccbcccfc610aad55 (patch) | |
tree | 3d77dc893ee353fb0e7a4154055f547301535d14 /cider-mode.el | |
parent | bfd519d498e93c8a8b2c466e11f877939aa17131 (diff) |
[Fix #1515] Don't append the dynamic font-lock when not needed
This applies to macros, functions, and vars dynamic font-locking.
We can't do it to the deprecated, instrumented, or traced entries,
because these entries are designed to be applied on top of regular
font-locking.
Diffstat (limited to 'cider-mode.el')
-rw-r--r-- | cider-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cider-mode.el b/cider-mode.el index c72be2b4..bb45a84f 100644 --- a/cider-mode.el +++ b/cider-mode.el @@ -390,13 +390,13 @@ The value can also be t, which means to font-lock as much as possible." ,@(when macros `((,(concat (rx (or "(" "#'")) ; Can't take the value of macros. "\\(" (regexp-opt macros 'symbols) "\\)") - 1 (cider--unless-local-match font-lock-keyword-face) append))) + 1 (cider--unless-local-match font-lock-keyword-face)))) ,@(when functions `((,(regexp-opt functions 'symbols) 0 - (cider--unless-local-match font-lock-function-name-face) append))) + (cider--unless-local-match font-lock-function-name-face)))) ,@(when vars `((,(regexp-opt vars 'symbols) 0 - (cider--unless-local-match font-lock-variable-name-face) append))) + (cider--unless-local-match font-lock-variable-name-face)))) ,@(when deprecated `((,(regexp-opt deprecated 'symbols) 0 (cider--unless-local-match cider-deprecated-properties) append))) |