Skip to content

Commit 0c14631

Browse files
committed
[Fix #356] defprotocol docstring indentation
1 parent 22b6709 commit 0c14631

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

clojure-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ it from Lisp code, use (put-clojure-indent 'some-symbol :defn)."
960960
(reify '(:defn (1)))
961961
(deftype '(2 nil nil (1)))
962962
(defrecord '(2 nil nil (1)))
963-
(defprotocol '(1))
963+
(defprotocol '(1 (:defn)))
964964
(extend 1)
965965
(extend-protocol '(1 :defn))
966966
(extend-type '(1 :defn))

test/clojure-mode-indentation-test.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,14 @@ values of customisable variables."
264264
([item a]
265265
(* a (:qty item)))))")
266266

267+
(def-full-indent-test defprotocol
268+
"(defprotocol IFoo
269+
(foo [this]
270+
\"Why is this over here?\")
271+
(foo-2
272+
[this]
273+
\"Why is this over here?\"))")
274+
267275
(def-full-indent-test non-symbol-at-start
268276
"{\"1\" 2
269277
*3 4}")

0 commit comments

Comments
 (0)