Skip to content

Commit 3e5652c

Browse files
Ben Simabbatsov
authored andcommitted
Add indentation rule for definterface (#395)
1 parent f24c536 commit 3e5652c

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Bugs fixed
66

7+
* Fixed indentation of `definterface` to match that of `defprotocol`.
78
* [#389](https://github.com/clojure-emacs/clojure-mode/issues/389): Fixed the indentation of `defrecord` and `deftype` multiple airity protocol forms.
89

910
## 5.5.0 (2016-06-25)

clojure-mode.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,7 @@ work). To set it from Lisp code, use
13161316
(deftype '(2 nil nil (:defn)))
13171317
(defrecord '(2 nil nil (:defn)))
13181318
(defprotocol '(1 (:defn)))
1319+
(definterface '(1 (:defn)))
13191320
(extend 1)
13201321
(extend-protocol '(1 :defn))
13211322
(extend-type '(1 :defn))

test/clojure-mode-indentation-test.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,15 @@ values of customisable variables."
297297
[this]
298298
\"Why is this over here?\"))")
299299

300+
301+
(def-full-indent-test definterface
302+
"(definterface IFoo
303+
(foo [this]
304+
\"Why is this over here?\")
305+
(foo-2
306+
[this]
307+
\"Why is this over here?\"))")
308+
300309
(def-full-indent-test specify
301310
"(specify obj
302311
ISwap

0 commit comments

Comments
 (0)