Skip to content

Commit f603588

Browse files
oskarkvbbatsov
authored andcommittedJul 16, 2019
Dynamically font lock multifns as fns in CljS
1 parent acf5457 commit f603588

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎src/cider/nrepl/middleware/track_state.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
[m]
4646
(cond-> (:meta m)
4747
(or (:fn-var m)
48-
(= (:tag m) 'function)
48+
('#{function cljs.core/MultiFn} (:tag m))
4949
(not (contains? m :tag)))
5050
(assoc :fn true)))
5151

‎test/clj/cider/nrepl/middleware/track_state_test.clj

+4-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@
123123
:uses {'sym-1 #'ns-as-map-cljs-test}
124124
:defs {'a-fn {:fn-var true}
125125
'b-fn {:tag 'function}
126-
'c-fn {}
126+
'c-fn {:tag 'cljs.core/MultiFn}
127+
'd-fn {}
127128
'a-var {:tag 'something}}
128129
:require-macros {'sym-2 'some-namespace}
129130
:requires {'sym-3 'some-namespace}}
@@ -134,7 +135,8 @@
134135
a-var {}
135136
a-fn {:fn "true"}
136137
b-fn {:fn "true"}
137-
c-fn {:fn "true"}}
138+
c-fn {:fn "true"}
139+
d-fn {:fn "true"}}
138140
interns))))
139141

140142
(deftest calculate-used-aliases-test

0 commit comments

Comments
 (0)
Please sign in to comment.