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

Reader conditional confuses indentation #620

Open
Frozenlock opened this issue May 19, 2022 · 0 comments
Open

Reader conditional confuses indentation #620

Frozenlock opened this issue May 19, 2022 · 0 comments

Comments

@Frozenlock
Copy link

Expected behavior

(reify
  Object    

  #?@(:clj
      [(equals
         [this other])

       (hashCode
         [_]
         (hash 1))]

      :cljs
      [(toJSON
         [this]
         (throw (ex-info "error" {})))

       IEquiv

       (-equiv
         [this other]
         true)]))

Actual behavior

(reify
  Object    

  #?@(:clj
      [(equals
           [this other]) ; <------

       (hashCode
         [_]
         (hash 1))]

      :cljs
      [(toJSON
           [this] ; <------
         (throw (ex-info "error" {})))

       IEquiv

       (-equiv
         [this other]
         true)]))

Steps to reproduce the problem

(setq clojure-indent-style 'align-arguments)
(But the problem is the same with 'always-align.)

Paste in a buffer and indent.

(C-x h TAB)

Environment & Version information

clojure-mode version

M-x clojure-mode-display-version

clojure-mode (version nil)

When checking in packages:
20220418.2015

Emacs version

28.1

Operating system

Ubuntu 18.04.6 LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants