File tree 1 file changed +4
-2
lines changed
src/main/clojure/com/github/clojure_lsp/intellij/extension 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 21
21
(doto (.clone (.getDefaultAttributes text-attribute-key))
22
22
(.setFontType Font/BOLD))))
23
23
24
- (def ^:private bold-function-declaration
24
+ (defn ^:private bold-function-declaration* []
25
25
(make-bold SemanticTokensHighlightingColors/FUNCTION_DECLARATION))
26
26
27
+ (def ^:private bold-function-declaration (memoize bold-function-declaration*))
28
+
27
29
(defn -getTextAttributesKey [_ ^String token-type ^List token-modifiers ^PsiFile psi-file]
28
30
(condp = token-type
29
31
SemanticTokenTypes/Namespace SemanticTokensHighlightingColors/STATIC_PROPERTY
30
32
SemanticTokenTypes/Function (if (modifier? SemanticTokenModifiers/Definition token-modifiers)
31
- bold-function-declaration
33
+ ( bold-function-declaration )
32
34
SemanticTokensHighlightingColors/MACRO)
33
35
SemanticTokenTypes/Type SemanticTokensHighlightingColors/STATIC_PROPERTY
34
36
SemanticTokenTypes/Variable SemanticTokensHighlightingColors/READONLY_VARIABLE
You can’t perform that action at this time.
0 commit comments