Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type hints affect protocol methods' indentation #523

Open
vemv opened this issue Apr 10, 2019 · 1 comment
Open

Type hints affect protocol methods' indentation #523

vemv opened this issue Apr 10, 2019 · 1 comment
Labels

Comments

@vemv
Copy link
Member

vemv commented Apr 10, 2019

The presence or absence of a type hint appears to affect the indentation that clojure-mode will emit:

;; autoindented with clojure-mode
(defprotocol Foo
  (^Long omg [this]
   "")) ;; there should be one extra space here
;; autoindented with clojure-mode
(defprotocol Foo
  (omg [this]
    "")) ;; correct indentation, achieved by removing the type hint

Checked using a quite recent version of clojure-mode, but for unrelated reasons I can't upgrade currently (or start from scratch etc). Probably this is easy enough to reproduce.

Thanks - V

@Malabarba
Copy link
Member

Just confirming that I can reproduce this. Looks like a legit bug.

@bbatsov bbatsov added the bug label Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants