Skip to content

Commit e650b60

Browse files
committed
Adapt cider--inspector-java-headers to the changes introduced in Orchard
See clojure-emacs/orchard#197
1 parent 896edd2 commit e650b60

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cider-inspector.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,13 @@ MAX-COLL-SIZE if non nil."
436436
(cider-inspector-render-el* el)))
437437

438438
(defconst cider--inspector-java-headers
439-
'("--- Interfaces:" "--- Constructors:" "--- Fields:" "--- Methods:" "--- Imports:"))
439+
;; NOTE "--- Static fields:" "--- Instance fields:" are for objects,
440+
;; and don't deserve Java syntax highlighting (they can contain a Clojure value like `:foo/bar`, for instance)
441+
'("--- Interfaces:"
442+
"--- Fields:" ;; rendered only for Class objects (and not other objects) - see previous comment
443+
"--- Constructors:"
444+
"--- Methods:"
445+
"--- Imports:"))
440446

441447
(defun cider-inspector-render-el* (el)
442448
"Render EL."

0 commit comments

Comments
 (0)