summaryrefslogtreecommitdiff
path: root/cider-mode.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2016-01-15 23:57:34 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2016-01-16 00:07:35 +0000
commit19c1c3e4797bc7ad1805910cccbcccfc610aad55 (patch)
tree3d77dc893ee353fb0e7a4154055f547301535d14 /cider-mode.el
parentbfd519d498e93c8a8b2c466e11f877939aa17131 (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.el6
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)))